Home > Article > Operation and Maintenance > Does apache need to install php?
APACHE is just a service program, similar to ASP's IIS. Its function is to obtain the user's access request and reply. PHP is the interpreter.
Working principle:
The user accesses the server, APCHAE on the server gets the request, and then finds the web page file based on the content the user accesses. If the web page file needs to be compiled Files, such as PHP, call the PHP compiler (that is, the PHP we installed). After the compilation and interpretation are completed, an HTML file is generated, and APCHAE returns the HTML file to the user.
Install PHP
1. Log in to http://www.php.net/ and select the version you want to install. What needs to be noted here is that when selecting the version, VC11 and VC14 must be consistent with the previous Apache selection. x86, x64 must be consistent with the actual situation of the machine.
2. Unzip the downloaded file to a folder, such as C:\php, and copy php.ini-production in the root directory and rename it to php.ini;
3. Set the environment variables and add C:\php and C:\php\ext to the environment variable PATH, that is, add;C:\php;C:\php\ext
## at the end of the Path variable #Recommended tutorial:The above is the detailed content of Does apache need to install php?. For more information, please follow other related articles on the PHP Chinese website!