In this article we introduce the integration of PHP and Apache. Since it is integrated with PHP, we must first install PHP. Below we will introduce how to install PHP.
The first step is to download PHP. To download PHP, you can go to PHP Chinese Network PHP Tool Download Station to download the latest version.
The second step, after the download is completed, click on the installation package to install, as shown in the figure:
The third step is the same as installing Apache, create a PHP folder under the PHPedu folder, and then paste all the above files into the PHP folder we created
,
The fourth step is to modify the file name to php.ini
At this point, our PHP installation is complete, and the next step is to integrate PHP with Apache.
The first step is to open the Apache configuration file httpd.conf,
The second step is to find the corresponding line in the file and add the code. Here I The added code has been commented to facilitate learning.
The third step is to find the corresponding line and add the following code. Here is the default homepage
The fourth step is to restart the Apache server. No matter what content is modified, it needs to be restarted.
At this point, our PHP and Apache integration is complete.
For detailed tutorials, please refer to the PHP Chinese website video tutorial: Independent installation (2): Integration of PHP and Apache
[Related recommendations]
1. Independent installation one: Apache service installation and testing steps graphic tutorial
2. PHP Chinese website recommended download :php programmer toolbox
3. Picture and text tutorial on the installation steps of PHPstudy under Windows environment
4. Under Windows system Tutorial steps for installing the wampserver tool (picture)
5. Tutorial for installing and configuring the MAMP Pro development tool under Mac system (picture)
The above is the detailed content of Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache. For more information, please follow other related articles on the PHP Chinese website!