Installation and preparation of php5.0 in Windows

Source: Internet
Author: User

PhP5 includes the following important features:

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

The XML support is completely rewritten, and the extended performance is centered around the excellent libxml2 library (http://www.xmlsoft.org /).

· The New simplexml extension makes PHP objects easy to access and operate.

· A new built-in soap extension that supports Web service exchange.

· Added MySQL extension named mysqli to support functions of mysql4.1 and later versions.

· Bind the SQLite database.

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

First, click here to download PhP5 for Win32

Let's start.

Taking PHP for Apache as CGI binary as an example, I like this method. Take the installation directory c: \ php as an example;

Delete the original 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"

Modify PHP. ini and remove ";" before extension = php_mysql.dll. The default value is yes!

The same applies to PhP for Apache as module. Modify httpd. conf of Apache

Loadmodule php5_module C:/PHP/php5apache. dll
Addmodule mod_php5.c
Addtype application/X-httpd-PHP. php

In this way, all the DLL files are stored in the Windows System directory, and php.ini follows php.exe to the Windows System directory.

Both methods have been tried. Written in PhP4ProgramAll 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 ).

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.