Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
php5| comparing configuration PhP4 or PHP5, the steps of php4,5 configuration are roughly the same, but there are some differences in configuration content. In Linux and other environments, in general, as long as the correct compilation options, configuration is correct; In Windows configuration you need to be aware of the following differences:
1. Php4ts.dll and Php5ts.dll
This file will be copied to the Apache Bin directory or the system directory.
2. httpd.conf File loaded Modules
Examples are as follows:
# for PHP4 + apache1.x.xx
LoadModule Php4_module D:/www/webserver/php4/sapi/php4apache.dll
AddType application/x-httpd-php. php
# where D:/WWW/WEBSERVER/PHP5 is the directory where PHP resides.
3. Different ways to load MySQL
In PhP4 and previous versions, MySQL was integrated into PHP;
In PHP5 (including beta) versions, MySQL is loaded as a module and needs to be set php.ini to load, for example
Extension_dir = "d:/www/webserver/php5/ext/"
In addition, PHP4,PHP5 all need the system directory Libmysql.dll support, if the version is incorrect, even if you set the correct extension_dir and Php_mysql.dll parameters, will also cause the Apache boot when prompted Phpp_ Mysql.dll the error that cannot be found.
You are welcome to discuss and correct.
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to firstname.lastname@example.org. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
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:
and provide relevant evidence. A staff member will contact you within 5 working days.