Complete successfully configured WAMP server small note

Source: Internet
Author: User

It is necessary to install the latest version of Wamp server first!

Configure the path to the default www directory (optional): The following is an example of changing to D:\site. Open wamp\scripts\config.inc.php
Line 47th, $wwwDir = $c _installdir. ' /www '; Modified to: $wwwDir = ' d:/site ';

Configure the Apache root directory : C:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf->1. DocumentRoot, for example: DocumentRoot "D:/mzwnew"; 2.<directory, for example: <directory "D:/mzwnew" >

To Configure a virtual host : C:\wamp\bin\apache\Apache2.2.21\conf\extra\httpd-vhosts.conf, for example, add the following:

<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "D:/mzwnew/phpstudy"
ServerName local.phpstudy.com
Serveralias local.phpstudy.com
Errorlog "Logs/local.phpstudy.com-error.log"
Customlog "Logs/local.phpstudy.com-access.log" common
</VirtualHost>

Configure host: C:\Windows\System32\drivers\etc\HOSTS, for example: 127.0.0.1 local.phpstudy.com

then create a new file in the D:/mzwnew/phpstudy directory index.html (default)

finally open the browser, address bar input: local.phpstudy.com

Miracles appear :

Complete successfully configured WAMP server small note

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.