Complete PHP5.2.4 + Apache2.2.4 + MySql5.0.27 in Windows-PHP source code

Source: Internet
Author: User
Tags php development environment
The following uses php5.2.4, apache2.2.6, and MySQL as an example to describe how to build the PHP development environment. Download the apache, php, and mysql installation packages. If IIS or other web servers are installed, first, stop them and set them to non-random startup install apache install mysql install PHP test first create a directory WebDev (script ec (2) in the partition where you want to install the PHP environment ); script


The following uses php5.2.4, apache2.2.6, and MySQL as an example to describe how to build a PHP development environment.

  • Download the apache, php, and mysql installation packages
  • If you have already installed IIS or other web servers, stop them and set them to not start randomly.
  • Install apache
  • Install mysql
  • Install PHP
  • Test
First, create a directory WebDev in the partition where you want to install the PHP environment (I usually put it on the d drive. This is a common name and you can name it yourself)

1, apache2.2.6: http://apache.mirror.111cn.net/httpd/binaries/win32/apache_2.2.4-win32-x86-no_ssl.msi
Php-5.2.4, don't use PHP installation version, use his zip package directly,: http://cn.php.net/get/php-5.2.4-Win32.zip/from/this/mirror
MySQL, also uses his decompressed version,: http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-noinstall-5.0.45-win32.zip/from/http://mysql.new21.com/
2. It is relatively simple to install apache. Simply double-click the installation method and select custom (custom installation). Then, select the created D:/WebDev in the installation directory, then the next step is OK.
Unzip unzip, rename the unwrapped folder to mysql, then copy to d:/WebDev, and then copy the my-small.ini under d:/WebDev/mysql in the current directory, and rename it my. ini, and then open my. ini, find [mysqld], and add the following lines below:
Copy the content to the clipboard code: Basedir = D: WebDevmysql (root directory of mysql)
Datadir = D: WebDevmysqldata (mysql database storage directory)
Default-character-set = utf8 (the default encoding is modified according to your needs. I am used to utf8)
Default-storage-engine = InnoDB (default storage engine of mysql)
Save close
Finally, copy libmySQL. dll in the mysql/bin directory to the Directory d:/WebDev/Apache2.2/bin.
Then input the following in the command line:
Copy the content to the clipboard code: Enter d: Enter
Enter webdev/mysql/bin and press Enter.
Enter mysqld-nt install and press Enter.
Enter net start mysql press ENTER
If you see that "MySQL service has been started successfully. "The instance is started successfully.

Install php, decompress php-5.2.4-win32.zip, rename the decompressed folder to php5, copy it to the d:/WebDev directory, and then copy php under the php5 directory. copy the ini-recommended file to the apache2.2/bin directory, and copy the php. ini-recommended is renamed to php. ini. Modify php. ini:
Open php. INI file, search for the string extension_dir, and modify it to: extension_dir = "d:/webdev/php/ext" to search for error_reporting. There are many search results, which are not found before; (that is, the number of uncommented rows is about 300 ),

<

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.