Detailed explanation of the configuration of PHP running environment

Source: Internet
Author: User

Run 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. Types of support:

AddType application/x-compress. Z

AddType application/x-gzip. GZ tgz

AddType application/x-httpd-php. php

Phpinidir "D:MYZILIAOPHPPHP54"

4.Mysql configuration:

Modify php.ini file, configure PHP

First copy the php.ini-development or php.ini-production in the PHP directory to the C:windows directory. and renamed it PHP.ini

Php.ini-development for Development Program use (test)

Php.ini-production has a high security setting, it is suitable for on-line when the product uses

Open PHP.ini Modify the following

Find Extension_dir = "./" This line, modified for extension_dir = "D:phpext" (note remove front ";")

;d Ate.timezone = modified to Date.timezone = "Asia/shanghai" (note remove front ";")

Short_open_tag set to On

Extension=php_mbstring.dll (wide character support, recommended to remove the previous ";")

Extension=php_gd2.dll (PHP's GD library support, must remove the front of the ";")

Extension=php_mysqli.dll (Remove front ";")

Extension=php_mysql.dll (make PHP support MySQL, must choose to remove the front of ";")

Save exit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.