Want to subscribe to topics you're interested in?
Become a Member

Install Local installation

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

  1. hitman

    hitman Member

    110
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    4:21 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

    29,051
    6,592
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,788
    Local Time:
    11:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  3. hitman

    hitman Member

    110
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    4:21 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

    29,051
    6,592
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,788
    Local Time:
    11:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    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