修改wamp默认目录路径

Posted 可乐淘

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了修改wamp默认目录路径相关的知识,希望对你有一定的参考价值。

一、

1、打开Apache的配置文件 httpd.conf 

2、找到以下代码,Directory后面的就是你的文件路径

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "e:/wamp/www/shopImooc/">
二、

1、打开WAMP的安装目录,找到 wampmanager.ini 和 wampmanager.tpl 两个文件

2、在wampmanager.ini中找到以下代码,FileName后面的就是你的文件路径

[Menu.Left]
;WAMPMENULEFTSTART
Type: separator; Caption: "Powered by Alter Way"
Type: item; Caption: "Localhost"; Action: run; FileName: "C:\\Windows\\explorer.exe"; Parameters: "http://localhost/"; Glyph: 5
Type: item; Caption: "phpMyAdmin"; Action: run; FileName: "C:\\Windows\\explorer.exe"; Parameters: "http://localhost/phpmyadmin/"; Glyph: 5
Type: item; Caption: "www directory"; Action: shellexecute; FileName: "e:/wamp/www/shopImooc/"; Glyph: 2
Type: submenu; Caption: "Apache"; SubMenu: apacheMenu; Glyph: 3
Type: submenu; Caption: "PHP"; SubMenu: phpMenu; Glyph: 3
Type: submenu; Caption: "mysql"; SubMenu: mysqlMenu; Glyph: 3
Type: separator; Caption: "Debug"
3、在 wampmanager.tpl 中找到以下代码,FileName后面的就是你的文件路径

[Menu.Left]
;WAMPMENULEFTSTART
Type: separator; Caption: "Powered by Alter Way"
Type: item; Caption: "$w_localhost"; Action: run; FileName: "$c_navigator"; Parameters: "http://localhost/"; Glyph: 5
Type: item; Caption: "$w_phpmyadmin"; Action: run; FileName: "$c_navigator"; Parameters: "http://localhost/phpmyadmin/"; Glyph: 5
Type: item; Caption: "$w_wwwDirectory"; Action: shellexecute; FileName: "e:/wamp/www/shopImooc/"; Glyph: 2
Type: submenu; Caption: "Apache"; SubMenu: apacheMenu; Glyph: 3
Type: submenu; Caption: "PHP"; SubMenu: phpMenu; Glyph: 3
Type: submenu; Caption: "MySQL"; SubMenu: mysqlMenu; Glyph: 3
Type: separator; Caption: "Debug"
三、

重新启动wamp即可


以上是关于修改wamp默认目录路径的主要内容,如果未能解决你的问题,请参考以下文章

修改wamp网站的根目录

wamp配置虚拟路径(路径别名)

在WAMP中怎么修改默认浏览器?

如何设置wamp让别人可以访问我的程序和phpmyadmin

设置/修改wampserverd默认项目地址

wamp修改空密码以及设置虚拟站点