Join the community today
Become a Member

Installing wordpress in the Centmin default site

Discussion in 'Web Development & Web Performance' started by virtualorbis, Aug 16, 2018.

  1. virtualorbis

    virtualorbis New Member

    10
    3
    3
    Jul 11, 2018
    Ratings:
    +3
    Local Time:
    1:06 PM
    Hello,
    I am trying to install a wordpress site that will be shown for demo in the default site of a VPS
    that is currently runnig CentOS + Centmin Beta (so I can use php 7) however after installing wordpress.

    Unfortunately, the wordpress backend as well as the home page run fine, but the internal pages show a
    404 Not Found nginx error, so I was wondering what may be wrong.

    PS: I am using the default site, because I will call the site using an IP instead of a hostname.

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,859
    Local Time:
    4:06 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    centmin.sh menu option 22 wordpress installer is never made for use with main hostname called via IP address.

    Instead of using IP, you can make up a dummy host/domain name and do local hosts file edit to preview/test site as well :)

    If you want to preview newdomain.com on new centminmod server without updating DNS, on Windows PC edit your windows HOSTS file at c:\Windows\System32\Drivers\etc\hosts (see guide at Modify your hosts file | Knowledge Center | Rackspace Hosting or install Hostman app HostsMan - abelhadigital.com which can manage the file too and allows easy dns flushing when you make changes to the hosts file.

    c:\Windows\System32\Drivers\etc\hosts contents to preview without DNS update
    Code:
    centminmodserver-ip-address newdomain.com
    to disable preview comment it out and flush dns for your system
    Code:
    #centminmodserver-ip-address newdomain.com
    Hostsman app to flush dns and edit the c:\Windows\System32\Drivers\etc\hosts file

    And for MacOS users there's How to edit your Mac's Hosts file and why you would want to