Integration of apache2.2.4 and php5.2.17 in Windows

Source: Internet
Author: User

[System]

Windows XP SP3, C is the System Disk


[File]

Php-5.2.17-Win32-VC6-x86.zip

Httpd-2.2.19-win32-x86-openssl-0.9.8r.msi


[Installation and configuration steps]

1. php:

12.16.decompress php-5.2.17-win32-vc6-x86.zip, rename the folder to PhP, and put the PHP folder to the C root directory.

2) Copy php5ts. dll in the PHP folder to the c: \ windows \ system32 folder.

3) Copy PHP. ini-recommended from the PHP folder to the C: \ Windows folder and rename it PHP. ini.


2. Apache

Double-click the httpd-2.2.19-win32-x86-openssl-0.9.8r.msi to start installation, very easy.


3. Configure PHP in Apache

1) Stop the apache service and open httpd. conf In the conf folder in the Apache installation directory (the default installation directory is c: \ Program Files \ Apache Software Foundation \ apache2.2 ).

2) Add the following statement at the end of the file:

 
Loadmodule php5_module "C:/PHP/php5apache2_2.dll" addtype application/X-httpd-PHP. php phpinidir "C:/PHP"

3) Start the apache service.


[Test]

1. Test Apache:

Open your browser and enter localhost in the address bar. If the Apache page appears, Apache will work normally.

2. Test PHP:

Set the followingCodeStore index. php In Apache htdocs.

 
<? PHP phpinfo ();?>

Enter http: // localhost/index. php In the browser. If you can see the PHP information, it indicates that PHP has been configured.


Reference: http://www.builder.com.cn/2007/1021/570109.shtml






Related Article

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.