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