Use appserv to quickly create a PHP Runtime Environment

Source: Internet
Author: User

 

For PHP beginners like me, setting up the PHP runtime environment must be difficult. Then we use an integrated environment like appserv to help us quickly build the PHP runtime environment. Appser contains the Apache server, MySQL database, and phpMyAdmin.

First, go to the official website of appserv to download the version of the starter you need. The difference between the version is that the supported Apache server, MySQL database, and PHP version are different, the current version is 2.5.10. Start installation:

I used to install appserv in the root directory of the disk (for ease of use ):

Here let you select the components to install:

Apache Server Configuration:

MySQL database configuration (the root user password is required ):

After the installation is complete, start the Apache server and MySQL database:

Enter http: // localhost in the address bar of the browser. The following interface indicates that the Apache server is successfully started:

In this case, you can see the following directory structure in the installation directory of appserv:

The WWW folder is the storage path of the PHP file, in which we create the hello. php file. The file content is as follows:

<? PHP
Echo "test PHP! ";
?>

Enter http: // localhost/Hello. php In the browser and you can see the following content:

Now we have configured the PHP runtime environment.

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.