Steps for configuring the environment of Apache + PHP + MySql in Windows

Source: Internet
Author: User

PHP
Http://windows.php.net/downloads/releases/php-5.3.1-Win32-VC9-x86.zip
Apache
Http://apache.freelamp.com/httpd/binaries/win32/apache_2.2.14-win32-x86-openssl-0.9.8k.msi
MySQL
Http://mysql.mirror.tw/Downloads/MySQL-5.5/mysql-5.5.0-m2-win32.msi

1. install apache
2. decompress PHP to a directory
3. install mysql
4. configure the Apache file and find httpd under the Apache Software Foundation \ apache2.2 \ conf directory. in the conf file, CTRL + F find htdocs and point this path to the directory (website directory) where the Program runs ). There are two parts in total.
5. open the PHP installation directory and edit the configuration file. ini-Development) PHP. ini-production:
(1) register_globals = on
(2) Extension = php_mysql.dll
(3) modules as needed, select appropriate
6. combined with Apache and php
(1) Open the Apache configuration file, HTTP. conf.
(2) locate the approximate location
Fill in the blank line in the middle: (the path here is incorrect. Check the note)
(3) locate the following location,
Add the following code:
7. integration of MySQL with Apache and php
install MySQL. In the preceding PHP. ini configuration, open the MySQL module.
8. note:
(1) when setting 6-(2), note that there is no space in the program files. Therefore, put PHP in a simple directory or in the following directory.
(2) Pay attention to setting extension_dir = "D:/PHP/EXT". Otherwise, the path may be incorrect when the extension is loaded.

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.