Configure Apache integration with PHP in Windows

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.