Home  >  Article  >  Backend Development  >  Comparison of configuration similarities and differences between php4 and php5_PHP Tutorial

Comparison of configuration similarities and differences between php4 and php5_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:27:36839browse

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. When compiling in environments such as LINUX, generally speaking, as long as the compilation options are correct, the configuration will be correct; when configuring in Windows, you need to pay attention to the following differences: 1. The files php4ts.dll and php5ts.dll must be copied to the bin of apache. directory or system directory 2. Examples of modules loaded by the httpd.conf file are as follows: # 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 # Where d:/www/webserver/php4 is php directory. # 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; in PHP5 (including BETA) version, mysql is loaded as a module, and php.ini needs to be set to load, such as extension_dir. = "D:/www/WebServer/PHP5/ext/" extension=php_mysql.dll In addition, PHP4 and PHP5 require the support of libmysql.dll in the system directory. If the version is incorrect, even if you set the correct extension_dir and php_mysql. The parameters of dll will also cause the error that phpp_mysql.dll cannot be found when apache starts. Everyone is welcome to discuss and correct me.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531865.htmlTechArticleIn the process of configuring php4 or php5, the steps for php4 and 5 are roughly the same, but there are some configuration contents difference. Compiling in environments such as LINUX, generally speaking, as long as the compilation options are correct...
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