Dive into the PHP runtime environment configuration details

  • 2020-06-03 06:11:44
  • OfStack

Run environment configuration :php54+Apache2.2+Mysql

1. Default port Settings:


Listen 8080

2. Loading model:

LoadModule php5_module "D:\MyZILIAO\PHP\php54\php5apache2_2.dll"

3. Types of support:

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
PHPIniDir "D:\MyZILIAO\PHP\php54\"

4. Configuration of Mysql:

Modify the ES33en. ini file to configure php

First copy php.ini-ES41en or php.ini-ES44en from the php directory to the C:\WINDOWS directory. It was renamed php.ini

php. es52EN-development suitable for development programs (for testing)

php. ini-ES58en has a high security setting, so it is suitable for on-line use as the product

Open php.ini to modify the following

Find; extension_dir = "./" Line, change to extension_dir = "D:\php\ext" (note the previous"; "; )

; date.timezone = modified to date.timezone ="asia/shanghai" (note the previous "; "; )

short_open_tag is set to On

extension= php_ES90en.dll (support for wide characters. )

extension=php_gd2.dll (PHP's GD library supports it. )

extension= ES103en_ES104en.dll (remove the preceding ";" )

extension= php_ES110en.dll (to make PHP support MySQL, remove the preceding ";" )

Save the exit

Related articles: