Home > Backend Development > PHP Tutorial > Detailed explanation of php running environment configuration

Detailed explanation of php running environment configuration

WBOY
Release: 2016-07-25 08:53:24
Original
1039 people have browsed it
  1. #listen 12.34.56.78:80
  2. listen 8080
Copy code

2, load model:

  1. loadmodule php5_module "d:myziliaophphp54php5apache2_2.dll"
Copy code

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"
Copy code

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

  1. php.ini-development is suitable for program development (for testing)
  2. php.ini-production has higher security settings and is suitable for online use as a product
Copy the code

Open php .ini modification:

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 preceding ";") short_open_tag is set to on extension=php_mbstring.dll (wide character support, recommended to select and remove the preceding ";") extension=php_gd2.dll (php gd library support, required, remove the previous ";") extension=php_mysqli.dll (remove the preceding ";") extension=php_mysql.dll (make php support mysql, required to remove the previous ";")

Save and exit to complete the mysql configuration.



Related labels:
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