Wamp版本:2.0
主要过程:
(1)修改httpd.conf(实现更改默认网站路径)
(2)修改index.php(实现默认网站路径Wamp版本信息出错修复)
(3)修改manage.ini和manage.tpl(实现默认Wamp更改网站路径后软件浏览网站目录功能修复)
具体修改方法全过程:
WAMP2.0安装:C:/
www目录:C:/wamp/www/
变更目录:E:/web/
注意:以上参数为本人参数,请根据实际情况修改即可
==================================================================
第一步:修改httpd.conf
查找:
DocumentRoot
"c:/wamp/www/" 修改:
DocumentRoot "e:/web/"
查找:
修改:
第二步:修改index.php
查找:
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = '../wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = '../alias/';
修改:
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = 'c:/wamp/wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = 'c:/wamp/alias/';
第三步:修改manage.ini和manage.tpl
打开:manage.ini
查找:Type: item; Caption: "www 目录"; Action: shellexecute; FileName:
"c:/wamp/www/"; Glyph: 2
修改:Type: item; Caption: "www 目录"; Action: shellexecute; FileName:
"e:/web/"; Glyph: 2
打开:manage.tpl
查找:Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute;
FileName: "${wwwroot}"; Glyph: 2
修改:Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute;
FileName: "e:/web"; Glyph: 2