In this article we introduce the integration of PHP and Apache, since it is integrated with PHP, then we must first of all to install PHP. Below we will introduce the installation method of PHP.
The first step is to download PHP. Download PHP can go to the Topic.alibabacloud.comPHP tool download station to download the latest version.
The second step, after the download is complete, click on the installation package, install,
The third step, like installing the Apache method, create a PHP folder under the Phpedu folder, and then paste all of the above files into the PHP folder we created
、
Fourth step, modify the file name to PHP.ini
Here, even if our PHP installation is complete, the next step is to integrate PHP with Apache.
The first step is to open the Apache configuration file httpd.conf,
The second step, find the corresponding line in the file, add code, here I will add the code to comment, easy to learn,
The third step, find the corresponding line, add the following code, here is to add the default home page
In the fourth step, restarting the Apache server will require a reboot, regardless of what is being modified.
In this step, our PHP and Apache integration is complete.
Detailed tutorials can be referenced in topic.alibabacloud.com video tutorial: Standalone installation (ii):P HP and Apache integration
"Recommended"
1. Standalone installation one: Apache service installation and test steps graphic tutorial
2. php Chinese network recommended download : PHP programmer Toolbox
3. Installation steps of Phpstudy in Windows environment tutorial
4. Installation tutorial steps for Wampserver Tools under Windows System (figure)
Installation and configuration steps for Mamp Pro development tools under 5.MAC System tutorial (figure)