wamp 修改www目录
2015-07-25 21:52
387 查看
我的情况
Wamp版本:2.2
WAMP2.2安装目录:C:/
www目录:D:/wamp/www/
变更目录:E:/HbuilderProjects/
一 主要过程:
(1)修改 D:\wamp\bin\apache\Apache2.2.21\conf \httpd.conf(实现更改默认网站路径,即将Http://localhost定向到自己的默认目录:E:/HbuilderProjects/)
(2)拷贝并修改index.php(使新默认网站路径中的index.php可以正常显示,如果不需要Index.php可以略过此步)
(3)修改D:\wamp\wampmanager.ini
和C:\wamp\wampmanager.tpl(改菜单中的“www 目录”指向)
二 具体修改方法全过程:
l 第一步:修改C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf
178查找: DocumentRoot
"c:/wamp/www/"
修改: DocumentRoot "E:/HbuilderProjects/"
205查找: <Directory
"c:/wamp/www/">
修改: <Directory "E:/HbuilderProjects/">
l 第二步:拷贝并修改index.php
(1)拷贝:
将D:/wamp/www/拷贝至E:/HbuilderProjects/
(2)查找:
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = '../wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = '../alias/';
(3)修改:
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = 'D:/wamp/wampmanager.conf';
//chemin
jusqu'aux fichiers alias
$aliasDir = 'D:/wamp/alias/';
l 第三步:修改wampmanager.ini和wampmanager.tpl
1 修改D:\wamp\wampmanager.ini:
(1)打开:D:\wamp\wampmanager.ini
290(2)查找:Type:
item; Caption: "www 目录"; Action: shellexecute; FileName: "D:/wamp/www"; Glyph: 2
(3)修改:Type:
item; Caption: "www 目录"; Action: shellexecute; FileName: "E:/HbuilderProjects"; Glyph: 2
2 修改D:\wamp\wampmanager.tpl:
(1)打开:C:\wamp\wampmanager.tpl
123(2)查找:Type:
item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "${wwwdir}"; Glyph: 2
(3)修改:Type:
item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "E:/HbuilderProjects"; Glyph: 2
完成所有步骤,保存文件,至此修改成功。
Wamp版本:2.2
WAMP2.2安装目录:C:/
www目录:D:/wamp/www/
变更目录:E:/HbuilderProjects/
一 主要过程:
(1)修改 D:\wamp\bin\apache\Apache2.2.21\conf \httpd.conf(实现更改默认网站路径,即将Http://localhost定向到自己的默认目录:E:/HbuilderProjects/)
(2)拷贝并修改index.php(使新默认网站路径中的index.php可以正常显示,如果不需要Index.php可以略过此步)
(3)修改D:\wamp\wampmanager.ini
和C:\wamp\wampmanager.tpl(改菜单中的“www 目录”指向)
二 具体修改方法全过程:
l 第一步:修改C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf
178查找: DocumentRoot
"c:/wamp/www/"
修改: DocumentRoot "E:/HbuilderProjects/"
205查找: <Directory
"c:/wamp/www/">
修改: <Directory "E:/HbuilderProjects/">
l 第二步:拷贝并修改index.php
(1)拷贝:
将D:/wamp/www/拷贝至E:/HbuilderProjects/
(2)查找:
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = '../wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = '../alias/';
(3)修改:
//chemin jusqu'au fichier de conf de WampServer
$wampConfFile = 'D:/wamp/wampmanager.conf';
//chemin
jusqu'aux fichiers alias
$aliasDir = 'D:/wamp/alias/';
l 第三步:修改wampmanager.ini和wampmanager.tpl
1 修改D:\wamp\wampmanager.ini:
(1)打开:D:\wamp\wampmanager.ini
290(2)查找:Type:
item; Caption: "www 目录"; Action: shellexecute; FileName: "D:/wamp/www"; Glyph: 2
(3)修改:Type:
item; Caption: "www 目录"; Action: shellexecute; FileName: "E:/HbuilderProjects"; Glyph: 2
2 修改D:\wamp\wampmanager.tpl:
(1)打开:C:\wamp\wampmanager.tpl
123(2)查找:Type:
item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "${wwwdir}"; Glyph: 2
(3)修改:Type:
item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "E:/HbuilderProjects"; Glyph: 2
完成所有步骤,保存文件,至此修改成功。
相关文章推荐
- Soldier and Badges(546B)
- zoj2388 Beat the Spread!
- 前端笔试题面试题系列(一)
- 浅谈 malloc/free 和 new/delete
- Python - 两个列表(list)组成字典(dict)
- linux 进程控制理论基础
- mysql的show操作
- [c]HDOJ1874 floyd算法求最短路径
- ubuntu 12.04安装telnet
- ,典型递归问题-F(1025)mod 5 的值
- 17.Letter Combinations of a Phone Number(Map; recursion)
- Android 四大组件学习之BroadcastReceiver二
- haproxy path_beg,path_end ,hdr_beg
- iOS 记住密码\自动登录
- 网页制作之html基础学习2-标签
- Android学习笔记之如何使用圆形菜单实现旋转效果...
- java静态代码块
- STL vector的N种构造方式
- JavaSE基础部分--(一)
- MSP430F5529的IO口管脚的中断学习笔记