Get the most out of your Centmin Mod LEMP stack
Become a Member

Install Local installation

Discussion in 'Install & Upgrades or Pre-Install Questions' started by hitman, Jan 27, 2016.

  1. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    11:56 AM
    hello
    i have a vm with centos and i would like to test some things locally
    but thinking of this scenario i got stuck as to what should be done regarding the domain/IP the sites i will create will have
    meaning what should i do with options 2 and 3

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    6:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  3. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    11:56 AM
    hello
    i do not open a new thread since it is a similar question

    i made a clean install of cenmin locally and i would like to test a site there
    where should i put the contents of the site? in which directory in order to be able to see them locally opening a browser?
    please note that i do not want to use a domain unless i have to
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    6:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    everything is same locally as it is normally on server so public is your webroot location as outlined at Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS and step 1 of Getting Started Guide

    the above domain preview can be for any domain even one that doesn't exist - that's how i do tests locally myself as well i.e. newdomain2.com domain i used for wordpress centmin.sh 22 install outline at Getting Started Guide - CentminMod.com LEMP Nginx web stack for CentOS

    hosts file edit would just be
    Code (Text):
    centminmodserver-ip-address newdomain2.com