Quick configuration of Apache + PHP5 + Mysql in Windows XP

Source: Internet
Author: User
Tags mysql gui
I checked some information and configured it before. It took only five minutes to complete the configuration and test of Apache + PHP5 + Mysql. Khan. If you don't talk much about it, let's first list the versions of the programs I downloaded:

Mysql-4.1.8-essential-win
Mysql-gui-tools-5.0-r12-win32
Php-5.2.5-win32-installer
Apache_2.2.4-win32-x86-no_ssl
PhpMyAdmin-2.11.5.1-all-languages
Navicat8_mysql_cs-v8.0

The software is described below:
Mysql uses the old version. it is enough. it is also a learning process. I believe you will not have any doubts.
Because it is a Cainiao, Mysql GUI (Mysql visualization tool) is still necessary. it is recommended that you install it for beginners. of course, do not master BS...
PHP just saw the release of the new version, so use it ~
The same is true for Apache.
PHPMyAdmin is a web-based mysql visualization tool ~ Generally, if the virtual space provided by the space provider supports Mysql, most of its operation interfaces will be it. Therefore, it is okay to learn one.
Navicat is a Mysql GUI, which is a good GUI made by a third party. it is worth using!
If a friend doesn't know what they are actually useful for, I will add it in my future topics.

Configuration officially started!

1. install Mysql first. there is nothing special about it. you can select skip Sign-up when you Sign Up next. Then select Configure the MySQL Server now to start configuring Mysql. for normal developers, select Standard Configuration and follow the default value "Next" to allow you to enter the password, enter the Mysql root password you want and click Next (which can be understood as the administrator password ). Then Execute. if there is no accident, congratulations, Mysql configuration is complete.

2. there is nothing special about installing the Mysql GUI Tool. after the installation is completed, you can open its program MySQL Adsministraotr. if it is a local database, enter localhost in the Server Host, username is root, and the password is the administrator password just entered when Mysql was installed. If you can smoothly enter, it proves that the Mysql configuration is correct again. you can also confirm that the GUI is installed in place.

3. one thing to note about Apache installation is that when you configure Server Information, all the above three items can be entered as long as they comply with the domain name, host name, and email format, you can refer to the writing method provided by it. It should be noted that the Apache HTTP port settings use port 80 by default as the HTTP service port, which is no surprise, if you have installed IIS on the same machine before, there will be a problem. The HTTP service port in IIS is also port 80, if you make Apache's HTTP port still use port 80, it will be unable to start the Apache service because of port conflict. There are only two solutions: stop or modify the HTTP service port of IIS, or modify the HTTP service port of Apache. Here, I can only assume that you have not installed IIS, so Apache will use port 80. All right, Next, all. Apache installation is complete. In future posts, I will describe how to modify IIS and Apache ports.

4. finally, for PHP installation, follow the convention at the beginning. for Web Server Setup, select Apache 2.2.x Module, because we just installed Apache. Next, select the Apache configuration folder path, which is the Apache2.2 \ conf directory in the Apache installation path. Then select the component to be installed. Note that, because Mysql is to be connected in the future, it is critical to select MySQL under Extensions! Next, the installation announcement is complete! Next, use the libmysql file in your PHP installation directory. dll and php_mysql.dll in the ext directory under the installation directory are copied to the windows \ system32 directory, and then restart the Apache service, or simply restart the machine, the installation and configuration work has come to an end.

Hurry up. let's test it. Type localhost in the browser to see if It works is displayed! If yes, congratulations again. there is no problem with the Apache service. Then we went to the htdocs directory in the Apache installation directory and created a file named test. php.



Echo phpinfo ();
?>

Enter the browser again and enter localhost/test. php in the address bar. The PHP version information and other information will be displayed. in this case, the PHP configuration is successful!

Finally, test the connection with the Mysql database. create the test2.php file and add



$ Link = mysql_connect ("localhost", "root", "previous administrator password ");
If (! $ Link) echo "no connection successful! ";
Else echo "connection successful! ";
Mysql_close ();
?>

Return to the browser and type localhost/test2.php. the connection must be successful!

Okay ~ So far, the installation, configuration, and testing of Apache + PHP5 + Mysql have been completed ~ Are you very excited ~

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.