Php runtime environment configuration
- # Listen 12.34.56.78: 80
- Listen 8080.
2. load the 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 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
- Php. ini-development is suitable for development programs (for testing)
- 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. |