This article provides a detailed analysis of the PHP runtime environment configuration. For more information, see
Running Environment configuration: php54 + Apache2.2 + Mysql
1. Default port settings:
# Listen 12.34.56.78: 80
Listen 8080.
2. Load the model:
LoadModule php5_module "D: \ MyZILIAO \ PHP \ php54 \ php5apache2_2.dll"
3. Supported types:
AddType application/x-compress. Z
AddType application/x-gzip. gz. tgz
AddType application/x-httpd-php. php
PHPIniDir "D: \ MyZILIAO \ PHP \ php54 \"
4. Mysql Configuration:
Modify the php. ini file and configure php
First, copy the php. ini-development or php. ini-production in the php Directory to the C: \ WINDOWS directory and change it to php. ini.
Php. ini-development is suitable for development programs (for testing)
Php. ini-production has a high security setting, which is suitable for online product use.
Open php. ini and modify the following content.
Find the; extension_dir = "./" line and change it to extension_dir = "D: \ php \ ext" (remove the previous ";")
; Date. timezone = change to date. timezone = "asia/shanghai" (remove the previous ";")
Set short_open_tag to On
Extension = php_mbstring.dll (supported by wide characters. We recommend that you remove the preceding ";")
Extension = php_gd2.dll (php gd library support, you must remove the previous ";")
Extension = php_mysqli.dll (remove the previous ";")
Extension = php_mysql.dll (to enable PHP to support MySQL, you must remove the preceding ";")
Save and exit