Simple tutorial on installing PHP5.0 in Windows

Source: Internet
Author: User
PHP5 has the following important features: · supports new object models and Zend engines with many new features. · A complete re-writing of XML support, expanding the performance of the excellent libxml2 library (http://www.xmlsoft.org /). · New SimpleXML extension, light PHP Objects

PHP5 has the following important features:

· Supports new object models and Zend engines with many new features.

· A complete re-writing of XML support, expanding the performance of the excellent libxml2 library (http://www.xmlsoft.org /).

· The new SimpleXML extension makes it easy for PHP Objects to visit and control.

· New built-in SOAP extensions to support the exchange of Web services.

· Added the MySQL extension named MySQLi to support the functions of MySQL4.1 and later versions.

· Bind the SQLite database.

· Greatly improved the stream design, including holding the underlying socket through the stream

First, click here to download PHP5 FOR win32

Let's start.

Take the PHP for Apache as CGI binary method as an example. I love to use this method. Take the installation directory c: \ php as an example;

Delete the php installation directory and decompress php-5.0.0-win32.zip to c: \ php.

Rename php. ini-dist to php. ini (same as php4)

Modify the httpd. conf file of Apache. Delete the original statement with php4.

Use the following lines instead:

ScriptAlias/php/'C:/php /'
AddType application/x-httpd-php. php
Action application/x-httpd-php '/php/php-cgi.exe'

In php. ini, remove ";" Before extension = php_mysql.dll. the default value is yes!

The same applies to PHP for Apache as module. Corrected httpd. conf of Apache.

LoadModule php5_module c:/php/php5apache. dll
AddModule mod_php5.c
AddType application/x-httpd-php. php

All the DLL files of the local shell are stored in the windows system directory, and php.ini follows php.exe to the windows system directory.

Both methods have been tried. All programs written in php4 can run!

For apache2 settings:

1. do not AddModule mod_php5.c

2. LoadModule php5_module c:/php/php5apache2. dll, which is php5apache2. dll

3. you need to copy the dll file under the php Directory (the following files do not have to be copied: php5activescript. dll, php5apache. dll, php5apache_hooks.dll, and php5apache2. dll, php5isapi. dll, php5nsapi. dll.

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.