Home > Backend Development > PHP Tutorial > Detailed explanation of PHP running environment configuration_PHP tutorial

Detailed explanation of PHP running environment configuration_PHP tutorial

WBOY
Release: 2016-07-21 15:09:08
Original
1055 people have browsed it

Running environment configuration: php54+Apache2.2+Mysql

1.Default port settings:

#Listen 12.34.56.78:80

Listen 8080

2. Load model:

LoadModule php5_module "D:MyZILIAOPHPphp54php5apache2_2.dll"

3. Supported types:

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
PHPIniDir "D:MyZILIAOPHPphp54"

4.Mysql configuration:

Modify the php.ini file and configure php

First copy php.ini-development or php.ini-production in the php directory to the C:WINDOWS directory. And rename it to php.ini 

php.ini-development is suitable for development programs (for testing)

php.ini-production has higher security settings and is suitable for online use as a product

Open php.ini and modify the following content

Find the line; extension_dir = "./" and change it to extension_dir = "D:phpext" (note to remove the previous ";")

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

short_open_tag is set to On

extension=php_mbstring.dll (wide character support, recommended to select and remove the ";" in front)

extension=php_gd2.dll (PHP's GD library support, required, remove the ";" in front)

extension=php_mysqli.dll (Remove the previous ";")

extension=php_mysql.dll (to enable PHP to support MySQL, required to remove the previous ";")

Save and exit

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327359.htmlTechArticleRunning environment configuration: php54+Apache2.2+Mysql 1. Default port setting: #Listen 12.34.56.78:80 Listen 8080 2. Load the model: LoadModule php5_module "D:MyZILIAOPHPphp54php5apache2_2.dl...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template