Quick configuration of Apache + PHP5 + Mysql in Windows XP

Source: Internet
Author: User
Tags mysql gui

Khan. If you don't talk much about it, let's first list the versions of the programs I downloaded:


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.

<? 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

<? Php
$ 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.