: This article mainly introduces the configuration of Apache + PHP + Mysql. if you are interested in the PHP Tutorial, refer to it. After the environment configuration is complete, a problem occurs midway through, backup solution.
Raw materials:
ApacheService Monitor
Python 5.2
For Mysql 5.5
Install all the above
I. configuration
Apache
First modifyApacheConfiguration file.ApacheThe configuration file is inApacheHttpd. conf in the conf Directory of the installation directory.
1. LetApacheParse php files
Find # LoadModule vhost_alias_module modules/mod_vhost_alias.so in the configuration file and add
LoadModule php5_module "D:/WebServer/php/php5Apache2_2.dll"
AddType application/x-httpd-php. php
PHPIniDir "D:/WebServer/php"
2. configure the start page
Change DirectoryIndex index.html to DirectoryIndex index. php index.html.
3. modifyApacheSite category, project storage space
DocumentRoot "D:/Develop/Apache2.2/htdocs
DocumentRoot "C:/Program Files/ApacheSoftware Foundation/Apache2.2/htdocs/test"
Apache2.2/htdocs ">: Access control of the Directory of the main site, changed
ApacheSoftware Foundation/ Apache2.2/htdocs/www.lizhonghongyun.com ">
2. configure PHP
Php. ini-development renamed php. ini
Modify php. ini
Extension_dir = "ext" to extension_dir = "D:/WebServer/php/ext ";
#
; Extension = php_curl.dll
; Extension = php_gd2.dll
; Extension = php_mbstring.dll
; Extension = php_mysql.dll
; Extension = php_xmlrpc.dll
Modification date
; Date. timezone = changed to date. timezone = Asia/Shanghai
III. how to enable curl extension in php
1. copy the three php_curl.dll, libeay32.dll, and ssleay32.dll files in the PHP folder to system32;
2. remove the semicolon from php. ini (c: WINDOWS directory) and extension = php_curl.dll;
3. restartApacheOr IIS.
4. unable to load php_mcrypt.dll and php_mysql.dll
Solution: copy libmcrypt. dll and libmysql. dll to system32;
The above introduces the configuration of Apache + PHP + Mysql, including the content, and hope to be helpful to friends who are interested in the PHP Tutorial.