Home  >  Article  >  Backend Development  >  Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

巴扎黑
巴扎黑Original
2017-05-17 10:53:462880browse

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.

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

The second step, after the download is completed, click on the installation package to install, as shown in the figure:

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

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

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache ,

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

The fourth step is to modify the file name to php.ini

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

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,

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

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.

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

The third step is to find the corresponding line and add the following code. Here is the default homepage

Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

The fourth step is to restart the Apache server. No matter what content is modified, it needs to be restarted.

1Independent installation of PHP development environment (2): Graphical tutorial on integration of PHP and Apache

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 downloadphp 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn