Recently I found that many people are unable to install php6, so I will simply give you a brief explanation of the installation method (this article requires a certain PHP installation foundation)!
First you need to install the package, which can be downloaded from the following address:
apache2.2:http://down.chinaz.com/L/100_Lastuptime_Desc_1.asp
php6: http://snaps.php.net
Step 1: Install apache to c:/apache. After installation, you can enter http://localhost in the browser to see if it runs successfully! If there are running errors, more than 80% of them may be due to port problems. Please modify the two configurations of Listen and ServerName in c:/apache/conf/httpd.conf to other unoccupied ports!
Step 2: Unpack php6 to c:/php, and then copy c:/php/php.ini-recommended to c:/php/php.ini, or rename it directly! Then please configure php.ini correctly, especially pay attention to the extension_dir parameter and change it to "c:/php/ext/".
Step 3: Configure c:/apache/conf/httpd.conf. Add the following content at the end of the file:
LoadFile "c:/php/libmysql.dll"
LoadModule php5_module "c:/php/php6apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
It should be noted that the LoadModule parameter should be php5_module instead of php6_module.
The purpose of LoadFile "c:/php/libmysql.dll" is to allow PHP to support the php_mysql.dll extension
and finally save it. Then restart APACHE to run PHP!