Saturday, September 23, 2017

How to change www root directory of WampServer


WampServer is a web development environment for windows operating system. We can use it easily where it allows us to create a web application with PHP, Apache, MySQL database. But we have to face different problems after the installation of this program such as, default browser selection, default code editor and default Apache root directory. Here we can change everything after installation of the WampServer. To change the www root directory of Apache, we can follow the below methods.

  1. First open the WampServer
  2. Click on the WampServer icon from the taskbar when it turns green
  3. Then click on Apache
  4. From there go to httpd-vhosts.conf & click on it
  5. The file will be opened with your default editor and from the opening window change the Document & Directory location with your one
  6. Now save the file
  7. Restart your WampServer, DONE !
 //---example, you will find the default location as below in the httpd-vhosts.conf file: 
    • "DocumentRoot c:/wamp64/www"  &
    • <Directory c:/wamp64/www/">  
 And replace them with your location paths like this, for instance -
    •  "DocumentRoot d:/www" &
    • <Directory d:/www/"> 
Manually you can get the httpd-vhosts.conf file path here if you are running 64 bit operating system:
  C:\wamp64\bin\apache\apache2.4.23\conf\original\extra---//



0 comments:

__আপনার মতামত নিচে লিখুন। ধন্যবাদ।__