Wampserver Custom Site root directory

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.