Wampserve ways to modify the default Web site Directory

Source: Internet
Author: User

1wamp Introduction

Wampserve integrates Apache, MySQL, PHP, phpMyAdmin, Apache-enabled mod_rewrite,php extensions, Apache modules only need to be on the menu "on/Off" point on the spot, eliminating the hassle of modifying the configuration file, This is abbreviated as WAMP.

Assume the following:

Wamp Version: 2.1

WAMP2.0 installation directory: c:/

www directory: c:/wamp/www/

Change Directory: e:/phproot/

A major process:

(1) Modify C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf (implement change the default Web site path, the Http://localhost will be directed to their default directory: e:/phproot/)

(2) Copy and modify the index.php (so that the index.php in the new default site path can be displayed normally, if you do not need index.php can skip this step)

(3) Modify C:\wamp\wampmanager.ini and C:\wamp\wampmanager.tpl ( "www directory " in the menu to point to)

The whole process of the two specific modification methods:

First step: Modify C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf

Search: DocumentRoot "c:/wamp/www/"

Modified: DocumentRoot "e:/phproot/"

Search: <directory "c:/wamp/www/" >

Modified: <directory "e:/phproot/" >

Step Two: Copy and modify index.php

(1) Copy:

Copy the c:/wamp/www/to E:/phproot

(2) Find:

Chemin jusqu ' au fichier de conf de wampserver

$wampConfFile = '. /wampmanager.conf ';

Chemin jusqu ' aux fichiers alias

$aliasDir = '. /alias/';

(3) Modification:

Chemin jusqu ' au fichier de conf de wampserver

$wampConfFile = ' c:/wamp/wampmanager.conf ';

Chemin jusqu ' aux fichiers alias

$aliasDir = ' c:/wamp/alias/';

Step Three: Modify Wampmanager.ini and Wampmanager.tpl

1 Modify C:\wamp\wampmanager.ini:

(1) Open: C:\wamp\wampmanager.ini

(2) Search: Type:item; Caption: "www directory"; Action:shellexecute; FileName: "c:/wamp/www/"; Glyph:2

(3) Modification: Type:item; Caption: "www directory"; Action:shellexecute; FileName: "e:/phproot/"; Glyph:2

2 Modify C:\WAMP\WAMPMANAGER.TPL:

(1) Open: C:\WAMP\WAMPMANAGER.TPL

(2) Search: Type:item; Caption: "${w_wwwdirectory}"; Action:shellexecute; FileName: "${wwwdir}"; Glyph:2

(3) Modification: Type:item; Caption: "${w_wwwdirectory}"; Action:shellexecute; FileName: "E:/phproot"; Glyph:2

Complete all steps to save the file, and the modification succeeds.

Wampserve ways to modify the default Web site Directory

Related Article

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.