Apache2.2+mysql5.1+php5.2+phpmyadmin2 in Windows XP environment.

Source: Internet
Author: User
Tags install php php script win32 phpmyadmin



Apache_2.2.6-win32-x86-no_ssl.msi Download Address
Mysql-noinstall-5.1.22-rc-win32.zip Download Address
Php-5.2.0-win32.zip Download Address
Phpmyadmin-2.11.3-all-languages.zip Download Address

PHP has two installation methods, modular installation and CGI installation, and when PHP is configured as a CGI parser, each time the PHP version is interpreted, the Web server generates a temporary PHP parser to interpret the PHP script, which obviously degrades its performance. And when PHP is compiled into a module of Apache, it runs in the same memory address as the Apache server, and the traditional CGI mode has a great performance improvement. Some functions like persistent database connections can only be available in the Apache module mode. There are also some security issues when using the CGI pattern. So this guide uses the modular way of installing PHP.

1. Install Apache:

1.1: Download After the direct installation can be, I choose to install as D:workapache directory, after the installation of Apache will automatically run, in the address bar input HTTP://127.0.0.1/will be able to appear in the Apache Welcome page (It works!), Indicates that the Apache installation has been successful.

1.2: Modify d:workapacheconfhttpd.conf This Apache configuration file, the DocumentRoot "D:/work/apache/htdocs" modified to DocumentRoot "d:/work/ web/"; Modify <directory" D:/work/apache/htdocs "> For <directory" d:/work/web/", note that the path of both directories is directed to your program development directory, and finally to add “/”。

1.3: Restart Apache (the lower right corner should be more than a green light, found in the inside restart), in the address bar input HTTP://127.0.0.1/can work directory.

2. Install PHP:

2.1: Unzip the installation package of PHP files to d:workphp, and then copy D:workphpphp5ts.dll to C:windowssystem32.

2.2: Under the directory of PHP, the Php.ini-dist modified to php.ini, modify the Extension_dir as Extension_dir = "D:workphpext"

2.3: Modify the DirectoryIndex index.html in d:workapacheconfhttpd.conf to DirectoryIndex index.html index.php, so you can default to support index.php for the default load page.

2.4: At the end of the d:workapacheconfhttpd.conf, add the following three lines of code:
LoadModule php5_module "D:/work/php/php5apache2_2.dll"
AddType application/x-httpd-php. php
Phpinidir "d:/work/php/"

2.5: After restarting Apache, you can create a new index.php under the working directory to write:
<?php
Phpinfo ();
?>
Then access to the HTTP://127.0.0.1/appears a large number of icons, indicating that the installation was successful.

3, install MySQL:

3.1, the MySQL extract to the D:workmysql directory, and then run D:workmysqlbinmysqld.exe,mysql can run smoothly, but also need to copy d:workphplibmysql.dll files to c: WINDOWSsystem32 below. PHP will be able to support MySQL smoothly.

3.2, modify step 2.2 inside the php.ini, will; Extension=php_mysql.dll front of the ";" , let PHP support MySQL, and then restart Apache.

4, Installation phpMyAdmin:

4.1: After the phpMyAdmin decompression,
Related Article

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.