Fast configuration apache+php5+mysql_php techniques in Windows XP

Source: Internet
Author: User
Tags win32 administrator password mysql gui phpmyadmin
Sweat. No more nonsense, first list the relevant program I downloaded version:

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

Give a little indication of these software:
MySQL chose the older version, anyway enough on the line, is also a learning process, I believe we will not have any doubt.
Because is a rookie, MySQL GUI (MySQL visualization tool) still need to Ann, the proposal beginners also install it, of course, the master do not BS ...
PHP just see the new version of the release, then take it to use it ~
Apache, too, picked one casually.
phpMyAdmin is a web-based MySQL visualization tool, don't underestimate it yo ~ the virtual space provided by the general space provider, if it supports MySQL, is mostly its interface. So, there is no harm in learning one.
Navicat, is also a MySQL GUI, the third party to do a better GUI, is worth a use!
If a friend does not understand what they are specifically for, I will supplement it in future topics.

Formal start configuration!

1. First install MySQL, nothing special, all the way next, encounter let you Sign up the link, choose Skip sign-up can be. Then choose Configure the MySQL Server now, start to configure MySQL, ordinary development users choose standard Configuration Standard configuration, all the way according to the default value given next, to let you enter the password link, Type the MySQL root password you want and then next (you can understand the admin password). Then execute, no accident, congratulations, MySQL is configured to complete.

2.Mysql GUI Tool Installation Nothing special, all the way next can be completed, after completion, you can open it a program Mysql ADSMINISTRAOTR, if it is a native database, in the server host to fill in the localhost, Username is root, the password is the administrator password you entered when you just installed MySQL. If you can successfully enter, then again to prove that the MySQL configuration is not a problem, you can also determine the GUI is also installed in place.

3.Apache installation There is a point to note, at the beginning of all next, to let you configure the server information, the above three items can be filled out, as long as the domain name, host name and e-mail format can be referred to the writing method. To be reminded, the Apache HTTP port setting, which defaults to using port 80 as the HTTP service port, is nothing strange, except that if you installed IIS on the same machine before, then there is a problem, and the HTTP service port in IIS is also 80, If you make Apache HTTP port 80, then it will fail to start the Apache service because of a port conflict. There are only two solutions, either to stop or modify the HTTP service port of IIS, or to modify the Apache HTTP service port. Here, I can only assume that you have not installed IIS, so let Apache to occupy 80 ports. All right, all next. The Apache installation is over. In future posts, I'll describe how to modify the IIS and Apache ports.

4. Finally, the installation of PHP, at the beginning of the Convention next,web Server Setup Select Apache 2.2.x Module, because we have just installed Apache is this. Next, select Apache's configuration folder path, which is the apache2.2\conf directory in the previous Apache installation path. Then select the components to install, note, because in the future to connect MySQL, so the extensions under the selection of MySQL formation, this is the key Oh! Next, the installation announcement is complete! Next, copy the Libmysql.dll of your PHP installation directory with the Php_mysql.dll in the Ext directory under the installation directory to the Windows\System32 directory, then restart the Apache service, or simply reboot the machine, Here, the entire installation configuration work is over.

Hurry up, let's test it. Type localhost in the browser to see if there is an IT works! if it is, again congratulations, Apache Service no problem. Then we went to the Htdocs directory in the Apache installation directory to create a test.php file with the contents



<?php
Echo Phpinfo ();
?>

Once again into the browser, in the address bar input localhost/test.php, you should see the version of PHP information and other information, so that the PHP configuration work is also very successful!

Finally test and MySQL database connection, new test2.php file, in which to join



<?php
$link =mysql_connect ("localhost", "root", "previous admin password");
if (! $link) echo "No connection succeeded!";
else echo "Connection succeeded!";
Mysql_close ();
?>

Back to the browser, type localhost/test2.php, must be connected to success!

All right ~ so far, apache+php5+mysql installation, configuration, testing work all finished ~ is not very excited ~

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.