PHP6 installation method. Read the PHP6 installation method. Recently, it was found that many people cannot install php6, let me briefly describe the installation method (this article requires a certain PHP installation basis )! The installation package is required first. You can download it at: apache2.2: http://down.chinaz.com/L/100_Lastuptime_Desc_1.aspphp6:
Recently I found that many people cannot install php6, so I just want to briefly describe the installation method (this article requires some PHP installation basics )!
The installation package is required first. You can download it at the following address:
Apache2.2: http://down.chinaz.com/L/100_Lastuptime_Desc_1.asp
Php6: http://snaps.php.net
Step 1: install apache under c:/apache. After installation, enter it in your browser to check whether the installation is successful! If a running error occurs, Port errors may occur. Modify the Listen and ServerName configurations in c:/apache/conf/httpd. conf to other unused ports!
Step 2: unpackage php6 to c:/php, and then package c:/php. ini-recommended: Copy to c:/php. ini, or change the name directly! Configure php. ini correctly. Pay special 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"
Note that the LoadModule parameter should be php5_module rather than php6_module.
The purpose of LoadFile "c:/php/libmysql. dll" is to enable PHP to support php_mysql.dll extension.
Save and restart APACHE to run PHP!