WAMP Environment website root directory changes

Source: Internet
Author: User

1, modify the default directory of Wampserver

After Wampserver is installed, the Web site root directory defaults to the following: installation directory \wamp\www, which is the WWW folder under the Wampserver installation directory.

Let's take the change to: D\www as an example. Open wamp\scripts\config.inc.php

Line 47th, $wwwDir = $c _installdir. ' /www '; ($c _installdir is a variable that refers to the Wampserver installation root directory. )

Modified to: $wwwDir = ' d:/www ';

2nd Step

2. Modify the Apache default root directory

Open wamp\bin\apache\apache2.2.11\conf\httpd.conf, modify the value in the double quotation mark after documentroot as you want.

For example, change DocumentRoot "c:/wamp/www/" to DocumentRoot "d:/www/"

At the same time, the <directory "e:/wamp/www/" > Changed to <directory "e:/www/" >

Root directory configuration Successful —————— >

can also be the original root directory file index.php testmysql.php Copy to the current root directory and change the inside wampmanager.conf path, you can

WAMP Environment website root directory changes

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.