php5.2.4+apache2.2.4+mysql5.0.27 full configuration under Windows

Source: Internet
Author: User
Tags php and php and mysql php development environment win32

Take Php5.2.4,apache2.2.6,mysql as an example to introduce the construction of PHP development environment.

    • Download Apache, PHP and MySQL installation packages
    • If IIS or other Web servers are already installed, stop them first and set them to not start randomly
    • Install Apache
    • installing MySQL
    • Installing PHP
    • Test
First, set up a directory in the partition where you want to install the PHP environment WebDev (I usually put in D, this is my common name, you can name yourself)

1, apache2.2.6 download address: Http://apache.mirror.111cn.net/httpd/binaries/win32/apache_2.2.4-win32-x86-no_ssl.msi
php-5.2.4, do not use the installation version of PHP, directly using his zip package, download the address: Http://cn.php.net/get/php-5.2.4-Win32.zip/from/this/mirror
MySQL, also uses his uncompressed version, download address: http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-noinstall-5.0.45-win32.zip/from/http ://mysql.new21.com/
2, the Apache installation is relatively simple, directly double-click the installation on the line, select the installation mode when choosing custom (custom installation), and then install the directory to select the above has been built D:/webdev, and then the next step is OK
3, the installation of MySQL is also relatively simple, will download the mysql-5.0.45-freebsd6.0-i386.tar.gz decompression, and then will unlock the folder renamed MySQL, and then copied to D:/webdev, and then d:/webdev/ Under MySQL, My-small.ini copies a copy of the current directory, then changes it to My.ini, opens My.ini, finds the [mysqld], and adds the following lines below:
copy content to clipboard

Code:

basedir=D:WebDevmysql(mysql的根目录)
datadir=D:WebDevmysqldata(mysql的数据库存放目录)
default-character-set=utf8(默认编码根据自己需要修改,我习惯于使用utf8)
default-storage-engine=InnoDB(mysql的默认存储引擎)
Save shutdown
Finally, the libmySQL.dll of the Mysql/bin directory is copied to the D:/webdev/apache2.2/bin directory.
Then enter at the command line:
copy content to clipboard

Code:

输入d:回车
输入webdev/mysql/bin回车
输入mysqld-nt install回车
输入net start mysql回车
If you see that the MySQL service has started successfully. "That starts successfully

4, to the most important place, the installation of PHP, the Php-5.2.4-win32.zip decompression, and then the Unpacked folder renamed to PHP5, copied to the D:/webdev directory, The php.ini-recommended file in the PHP5 directory is then copied to the Apache2.2/bin directory and the php.ini-recommended is renamed PHP.ini, and the following is the modification of php.ini:
Open the php.ini file, search for the string extension_dir, and then modify it to: Extension_dir = "D:/webdev/php/ext", search error_reporting, which has many search results, find that front does not; (that is, not commented, about 300 lines),
<

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.