Apache + PHP + Mysql configuration

Source: Internet
Author: User
: 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.

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.