Php runtime environment configuration

Source: Internet
Author: User
Php runtime environment configuration

  1. # Listen 12.34.56.78: 80
  2. Listen 8080.

2. load the model:

  1. Loadmodule php5_module "d: myziliaophpphp54php5apache2_2.dll"

3. supported types:

  1. Addtype application/x-compress. z
  2. Addtype application/x-gzip. gz. tgz
  3. Addtype application/x-httpd-php. php
  4. Phpinidir "d: myziliaophpphp54"

4. mysql configuration: modify php. ini file, configure php first, set the php. ini-development or php. ini-production copied to c: windows directory. and rename it php. ini

  1. Php. ini-development is suitable for development programs (for testing)
  2. Php. ini-production has a high security setting, which is suitable for online product use.

Open php. ini and modify:

Find; extension_dir = ". /"This line, changed to extension_dir =" d: phpext "(note that the previous"; "is removed); date. timezone = change to date. timezone = "asia/shanghai" (note that the previous ";") short_open_tag is set to onextension = php_mbstring.dll (supported by wide characters, we recommend that you remove the previous ";") extension = php_gd2.dll (php gd library support, you must remove the previous ";") extension = php_mysqli.dll (remove the previous ";") extension = php_mysql.dll (enable php to support mysql, (required) remove the previous ";")

Save and exit to complete mysql configuration.

Related Article

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.