Home >Backend Development >PHP Tutorial >Detailed introduction to the configuration of installing PHP5 under Windows_PHP tutorial

Detailed introduction to the configuration of installing PHP5 under Windows_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:27:51881browse

PHP develops rapidly, and the emergence of PHP5 makes it more powerful. Let’s teach you about PHP5 configuration. PHP5 includes the following important features:
◆ Zend engine that supports the new object model and many new features.
◆ Completely re-written XML support, with extended capabilities around the excellent libxml2 library (http://www.xmlsoft.org/).
◆New SimpleXML extension, easy access to PHP objects.
◆New built-in SOAP extension supports the exchange of Web services.
◆Add a MySQL extension named MySQLi to support the functions of MySQL4.1 and later versions.
◆Bind SQLite database.
◆Greatly improve the design of the stream, including operating the underlying socket through the stream

Install PHP5 configuration under Windows system

First, click here to download PHP5 FOR win32 and let's get started. Take the PHP for Apache as CGI binary method 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) and modify Apache's httpd.conf file. Delete the original statements bound to php4.

Replace with the following lines:

<ol class="dp-xml">
<li class="alt"><span><span>ScriptAlias /php/ "c:/php/"  </span></span></li>
<li class=""><span>AddType application/x-httpd-php .php  </span></li>
<li class="alt"><span>Action application/x-httpd-php "/php/php-cgi.exe" </span></li>
</ol>

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

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

<ol class="dp-xml">
<li class="alt"><span><span>LoadModule php5_module c:/php/php5apache.dll  </span></span></li>
<li class=""><span>AddModule mod_php5.c  </span></li>
<li class="alt"><span>AddType application/x-httpd-php .php </span></li>
</ol>

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

I have tried both of the above methods. Programs written in php4 can run!

For apache2 settings :

Do not AddModule mod_php5.c, LoadModule php5_module c:/php/php5apache2. dll is php5apache2.dll. 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 directory (98, me is system). The above are the PHP5.0 configuration steps, I hope it will be helpful to everyone.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446481.htmlTechArticlePHP develops rapidly, and the emergence of PHP5 makes it more powerful. Let’s teach you about PHP5 configuration. PHP5 includes the following important features: ◆Supports new object model and many new features...
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