Comparison of php4 and php5 configurations _ PHP Tutorial

Source: Internet
Author: User
Tags sapi
Comparison of php4 and php5 configurations. In the process of configuring php4 or php5, the configuration steps of php4 and 5 are roughly the same, but there are some differences in the configuration content. Compiling in LINUX and other environments. In general, as long as the compilation option is configuring php4 or php5, the configuration steps of php4 and 5 are roughly the same, but there are some differences in the configuration content. Compiling in LINUX and other environments. In general, the configuration is correct as long as the compilation options are correct. in windows configuration, note the following differences: 1. php4ts. dll and php5ts. dll files must be copied to the bin directory of apache or the system directory. 2. httpd. example of the module loaded by the conf file: # For PHP4 + apache1.x. xx LoadModule php4_module d:/www/webserver/php4/sapi/php4apache. dll AddType application/x-httpd-php. php # For PHP4 + apache2.x. xx LoadModule php4_module d:/www/webserver/php4/sapi/php4apache2. dll AddType application/x-httpd-php. php # D:/www/webserver/php4 is the directory where php is located. # For PHP5 + apache1.x. xx LoadModule php5_module d:/www/webserver/php5/php5apache. dll AddType application/x-httpd-php. php # For PHP5 + apache2.x. xx LoadModule php5_module d:/www/webserver/php5/php5apache2. dll AddType application/x-httpd-php. php # Where d:/www/webserver/php5 is the directory where php is located. 3. mysql is integrated into php in different ways in php4 and earlier versions. in PHP5 (including BETA) versions, mysql is loaded as a module, php. ini to load, such as extension_dir = "D:/www/WebServer/PHP5/ext/" extension = php_mysql.dll. In addition, PHP4 and PHP5 all need libmysql in the system directory. dll support. if the version is incorrect, even if you have set the extension_dir and php_mysql.dll parameters correctly, the error phpp_mysql.dll cannot be found during apache startup. You are welcome to discuss and correct it.

Bytes. Compile in LINUX and other environments. generally, as long as the compilation option is...

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.