zoukankan      html  css  js  c++  java
  • wamp 修改www目录

    我的情况

    Wamp版本:2.2

    WAMP2.2安装目录:C:/

    www目录:D:/wamp/www/

    变更目录:E:/HbuilderProjects/

     

    一 主要过程:

    1)修改 D:wampinapacheApache2.2.21conf httpd.conf(实现更改默认网站路径,即将Http://localhost定向到自己的默认目录:E:/HbuilderProjects/

    2)拷贝并修改index.php(使新默认网站路径中的index.php可以正常显示,如果不需要Index.php可以略过此步)

    3)修改D:wampwampmanager.ini 和C:wampwampmanager.tpl(改菜单中的www 目录指向)

     

    二 具体修改方法全过程:

    l  第一步:修改C:wampinapacheApache2.2.17conf 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.iniwampmanager.tpl

    1 修改D:wampwampmanager.ini:

    (1)打开:D:wampwampmanager.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:wampwampmanager.tpl

    1)打开:C:wampwampmanager.tpl

    1232)查找:Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "${wwwdir}"; Glyph: 2

    3)修改:Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "E:/HbuilderProjects"; Glyph: 2

    完成所有步骤,保存文件,至此修改成功。

  • 相关阅读:
    在线|九月月考选填题
    函数$f(x)=e^xpm e^{-x}$相关
    偶函数性质的推广
    2020年全国卷Ⅱ卷文科数学选填题解析版
    2020年全国卷Ⅱ卷文科数学解答题解析版
    待定系数法
    特殊方法求函数解析式
    phd文献阅读日志-4.1
    phd文献阅读日志-1.2~3.2(1.2,2.1,2.2,3.1,3.2)
    完美解决linux下vim在终端不能用鼠标复制的问题
  • 原文地址:https://www.cnblogs.com/france/p/4808546.html
Copyright © 2011-2022 走看看