The Wampserver version I use is the 32-bit 3.0.6,wampserver default site root directory is the WWW directory under the installation directory, such as my root directory: E:\wamp\www
In general, we create a site will not be stored in this directory, so there is the need to modify the following steps:
1. Modify httpd.conf file, my path to this file in: E:\wamp\bin\apache\apache2.4.23\conf\httpd.conf
Find "DocumentRoot" and "Directory" and new definitions Define_dir
2. Modify httpd-vhosts.conf file, file path: E:\wamp\bin\apache\apache2.4.23\conf\extra\httpd-vhosts.conf
3. Modify the Wampserver left button menu for a custom directory, you need to modify two files, in the Wamp installation root directory, there are two files "Wampmanager.ini", "WAMPMANAGER.TPL"
Revise "Wampmanager.ini", open "Wampmanager.ini" and find Menu.left
Revise "Wampmanager.tpl", open "Wampmanager.tpl" and find Menu.left
4. Restart Wampserver
5. Verify that the custom directory was modified successfully
Create a new "index.php" file in the Custom catalog "D:\php_demo", which reads as follows:
<! DOCTYPE html>
Save after opening localhost in Firefox browser
The custom site root directory is complete.