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