WampServe修改默认网站目录的方法,wampserve目录
WampServe修改默认网站目录的方法,wampserve目录
1wamp简介
WampServe集成了Apache、MySQL、PHP、phpmyadmin,支持Apache的mod_rewrite,PHP扩展、Apache模块只需要在菜单“开启/关闭”上点点就搞定,省去了修改配置文件的麻烦,这里就简写成wamp
假设如下:
Wamp版本:2.1
WAMP2.0安装目录:C:/
www目录:C:/wamp/www/
变更目录:E:/phproot/
一 主要过程:
(1)修改 C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf(实现更改默认网站路径,即将Http://localhost定向到自己的默认目录:E:/phproot/)
(2)拷贝并修改index.php(使新默认网站路径中的index.php可以正常显示,如果不需要Index.php可以略过此步)
(3)修改C:\wamp\wampmanager.ini和C:\wamp\wampmanager.tpl(改菜单中的“www 目录”指向)
二 具体修改方法全过程:
第一步:修改C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf
查找: DocumentRoot "c:/wamp/www/"
修改: DocumentRoot "e:/phproot/"
查找:
修改:
第二步:拷贝并修改index.php
(1)拷贝:
将C:/wamp/www/拷贝至e:/phproot
(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 = 'c:/wamp/wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = 'c:/wamp/alias/';
第三步:修改wampmanager.ini和wampmanager.tpl
1 修改C:\wamp\wampmanager.ini:
(1)打开:C:\wamp\wampmanager.ini
(2)查找:Type: item; Caption: "www 目录"; Action: shellexecute; FileName: "c:/wamp/www/"; Glyph: 2
(3)修改:Type: item; Caption: "www 目录"; Action: shellexecute; FileName: "e:/phproot/"; Glyph: 2
2 修改C:\wamp\wampmanager.tpl:
(1)打开:C:\wamp\wampmanager.tpl
(2)查找:Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "${wwwdir}"; Glyph: 2
(3)修改:Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "e:/phproot"; Glyph: 2
完成所有步骤,保存文件,至此修改成功。

Outils d'IA chauds

Undresser.AI Undress
Application basée sur l'IA pour créer des photos de nu réalistes

AI Clothes Remover
Outil d'IA en ligne pour supprimer les vêtements des photos.

Undress AI Tool
Images de déshabillage gratuites

Clothoff.io
Dissolvant de vêtements AI

AI Hentai Generator
Générez AI Hentai gratuitement.

Article chaud

Outils chauds

Bloc-notes++7.3.1
Éditeur de code facile à utiliser et gratuit

SublimeText3 version chinoise
Version chinoise, très simple à utiliser

Envoyer Studio 13.0.1
Puissant environnement de développement intégré PHP

Dreamweaver CS6
Outils de développement Web visuel

SublimeText3 version Mac
Logiciel d'édition de code au niveau de Dieu (SublimeText3)