Home >Backend Development >PHP Tutorial >Detailed explanation of PHP5.0 installation and configuration under Windows_PHP tutorial

Detailed explanation of PHP5.0 installation and configuration under Windows_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:12:18782browse

PHP5 includes the following important features:

·Zend Engine supports new object model and many new features.

· XML support has been completely rewritten, with extended capabilities built around the excellent libxml2 library (http://www.xmlsoft.org/).

 ·New SimpleXML extension, easy access to PHP objects.

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

·Add a MySQL extension named MySQLi to support the functions of MySQL 4.1 and later versions.

 ·Bind SQLite database.

·Greatly improve the design of streams, including operating the underlying socket through streams

First, click here to download PHP5 FOR win32

Then let’s get started

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

Delete the original php installation directory and unzip php-5.0.0-Win32.zip to c:php

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

Modify Apache’s httpd.conf file. Delete the original statements bound to php4.

Replace with the following lines:

ScriptAlias ​​/php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"

Modify php.ini and remove the ";" in front of extension=php_mysql.dll. It is available by default!

The same is true if it is PHP for Apache as module. Modify Apache’s httpd.conf

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

However, this method requires copying all dll files to the windows system directory, php.ini and php.exe to the windows system directory

Tried both of the above methods. 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 files in the php directory (the following files do not need to be copied: php5activescript.dll, php5apache.dll, php5apache_hooks.dll, php5apache2.dll, php5isapi.dll, php5nsapi.dll) to the above-mentioned directory. (98, me is system) next

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313693.htmlTechArticlePHP5 includes the following important features: · Supports the new object model and the Zend engine with many new features. ·Completely rewritten XML support, with extended performance built around the excellent libxml2 library (ht...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn