Want more timely Centmin Mod News Updates?
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

    Jul 11, 2018
    Local Time:
    5:44 PM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    8:44 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
    centminmodserver-ip-address newdomain.com
    to disable preview comment it out and flush dns for your system
    #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