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