1. PHP environment combination

Source: Internet
Author: User

 

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!

 

 

 

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.