Comparison of configuration and similarities between PHP4 and php5 _php tutorial

Source: Internet
Author: User
Tags sapi
During the configuration of PhP4 or PHP5, the steps for php4,5 configuration are roughly the same, but there are some differences in configuration content. In Linux and other environments to compile, in general, as long as the compilation of the correct option, the configuration is correct, in Windows configuration you need to pay attention to the following differences: 1. Php4ts.dll and Php5ts.dll This file to be copied to the Apache Bin directory or under the System directory 2. Examples of modules loaded with the httpd.conf file are as follows: # for PHP4 + apache1.x.xx LoadModule php4_module d:/www/webserver/php4/sapi/php4apache.dll addty PE 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 # where 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. The way to load MySQL is different in php4 and previous versions, MySQL is integrated in PHP, while in PHP5 (including beta), MySQL is loaded as a module and needs to be set php.ini to load, for example extension_dir = "D :/www/webserver/php5/ext/"Extension=php_mysql.dll In addition, PHP4, PHP5 all require Libmysql.dll support under the system directory, if the version is incorrect, even if you set the correct extension_dir and PThe Hp_mysql.dll parameter also causes the Apache to prompt for phpp_mysql.dll errors when it starts. You are welcome to discuss and correct me.

http://www.bkjia.com/PHPjc/531865.html www.bkjia.com true http://www.bkjia.com/PHPjc/531865.html techarticle During the configuration of PhP4 or PHP5, the steps for php4,5 configuration are roughly the same, but there are some differences in configuration content. In Linux and other environments to compile, in general, as long as the compilation of options are ...

  • 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.