Configure Apache integration with PHP in Windows
PHP: php-5.3.28-Win32-VC9-x86.zip
Download and decompress the package. (E: \ programs \ php5.3.28-VC9)
Rename php. ini-development to php. ini. open the file and modify it as follows:
To use mysql, open the mysql module; Enable php_mysql.dll;
Modify the apache configuration file: Find the http. conf file under conf. Add the following content:
The preceding configuration completes integration of Apache and PHP.
Perform the following tests:
Create the test. php file in the htdocs directory of Apache. The content is as follows:
<? Php phpinfo ();?>
Start apache and enter the following URL for testing: http: // localhost/test. php
If php information appears on the page, it indicates that the operation is successful.
PHP5 Installation Problems
[Question] How can I configure apache2.2.17 and php5.3.4? Php does not contain the php5apache2_2.dll file?
If php5apache2_2.dll is not found in the php installation directory, the downloaded version must be incorrect. Php5 has several versions. How should I choose it?
Download: http://windows.php.net/download
The left side of this page has already been quite clear. If PHP5 and Apache are combined, you cannot select VC9 + or a later version, and you must use the Thread Safe version. The original article is as follows:
Please use the Apache builds provided by Apache Lounge.
They also provide VC11 builds of Apache for x86 and x64.
We use their binaries to build the Apache SAPIs.
If you are using PHP with Apache 1 or Apache2 from apache.org (not recommended ),
You need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler.
Do NOT use VC9 + versions of PHP with the apache.org binaries.
With Apache you have to use the Thread Safe (TS) versions of PHP.
Old PHP version:
Http://windows.php.net/downloads/releases/archives/
Http://museum.php.net/php5/
Do not download the default or VC9 version, because VC9 is customized for IIS, and VC6 is provided for Apache or other WEB service software.