1. Wamp5 Installation
Wamp5 is an integrated environment of Apache + PHP + Mysql in windows. It can meet the needs of most php users.
After wamp5 is downloaded and installed, the default English language is displayed. You can click wamp5 in the lower-right corner of the screen to convert the language to Chinese.
Because apache and iis both use port 80 by default, if IIS has been installed on the machine, there may be some conflicts. The solution is to change the IIS port to a non-port 80.
1. virtual directory settings
Start wamp5> left click> Alias directory> Add an Alias> enter the virtual directory request address as prompted [eg: http: // localhost/phpdemo/]> press enter> enter the actual folder address of the virtual directory [eg: C: \ test \]> press enter to show Alias created. press Enter to exit .... The virtual directory is successfully created!
2. Test the virtual directory
You can create a notepad file and change the suffix to php, such as "index. php", and enter
<? Php
Echo "Hello World !";
?>
Save the file index. php and the C: \ test \ Folder mentioned in step 2
Enter the http request address http: // localhost/phpdemo/created in step 2 in the browser address bar/
If the screen prints hello world! The entire virtual directory is successfully created!