Wampserve ways to modify the default site directory, wampserve directory _php tutorial

Source: Internet
Author: User

Wampserve ways to modify the default Web site directory, wampserve directory


1wamp Introduction

Wampserve integrates Apache, MySQL, PHP, phpMyAdmin, Apache-enabled mod_rewrite,php extensions, Apache modules only need to be on the menu "on/Off" point on the spot, eliminating the hassle of modifying the configuration file, This is abbreviated as WAMP.

Assume the following:

Wamp Version: 2.1

WAMP2.0 installation directory: c:/

www directory: c:/wamp/www/

Change Directory: e:/phproot/

A major process:

(1) Modify C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf (implement change the default Web site path, the Http://localhost will be directed to their default directory: e:/phproot/)

(2) Copy and modify the index.php (so that the index.php in the new default site path can be displayed normally, if you do not need index.php can skip this step)

(3) Modify C:\wamp\wampmanager.ini and C:\wamp\wampmanager.tpl ( "www directory " in the menu to point to)

The whole process of the two specific modification methods:

First step: Modify C:\wamp\bin\apache\Apache2.2.17\conf \httpd.conf

Search: DocumentRoot "c:/wamp/www/"

Modified: DocumentRoot "e:/phproot/"

Find:

Modify:

Step Two: Copy and modify index.php

(1) Copy:

Copy the c:/wamp/www/to E:/phproot

(2) Find:

Chemin jusqu ' au fichier de conf de wampserver

$wampConfFile = '. /wampmanager.conf ';

Chemin jusqu ' aux fichiers alias

$aliasDir = '. /alias/';

(3) Modification:

Chemin jusqu ' au fichier de conf de wampserver

$wampConfFile = ' c:/wamp/wampmanager.conf ';

Chemin jusqu ' aux fichiers alias

$aliasDir = ' c:/wamp/alias/';

Step Three: Modify Wampmanager.ini and Wampmanager.tpl

1 Modify C:\wamp\wampmanager.ini:

(1) Open: C:\wamp\wampmanager.ini

(2) Search: Type:item; Caption: "www directory"; Action:shellexecute; FileName: "c:/wamp/www/"; Glyph:2

(3) Modification: Type:item; Caption: "www directory"; Action:shellexecute; FileName: "e:/phproot/"; Glyph:2

2 Modify C:\WAMP\WAMPMANAGER.TPL:

(1) Open: C:\WAMP\WAMPMANAGER.TPL

(2) Search: Type:item; Caption: "${w_wwwdirectory}"; Action:shellexecute; FileName: "${wwwdir}"; Glyph:2

(3) Modification: Type:item; Caption: "${w_wwwdirectory}"; Action:shellexecute; FileName: "E:/phproot"; Glyph:2

Complete all steps to save the file, and the modification succeeds.

http://www.bkjia.com/PHPjc/1043034.html www.bkjia.com true http://www.bkjia.com/PHPjc/1043034.html techarticle Wampserve Modify the Default Web site directory, wampserve directory 1wamp Introduction wampserve integrated Apache, MySQL, PHP, phpMyAdmin, support Apache mod_rewrite,php extension, Apache module only ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.