Quick Configuration apache+php5+mysql_php Tutorials in windowsxp

Source: Internet
Author: User
Tags administrator password mysql gui
Sweat. Don't say much nonsense, first list the version of the program 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

A little description of these software:
MySQL chose the older version, anyway enough on the line, it is also a learning process, I believe we will not have any doubts.
Because it is a rookie, MySQL GUI (MySQL visualizer) is necessary to Ann, it is recommended that beginners also installed it, of course, Master don't BS ...
PHP just see the new version of the release, then take it!
Apache, too, picked a random one.
phpMyAdmin is a web-based MySQL visualization tool, don't underestimate it ~ the virtual space provided by the general space provider if MySQL is supported, the interface is mostly it. So, it doesn't hurt to learn one.
Navicat, is also a MySQL GUI, the third party to do a better GUI, worth a use!
If there are friends who do not understand what their specific purpose is, I will add them in future topics.

Officially start configuration!

1. First install MySQL, nothing special, all the way next, encounter let you sign up the link, choose Skip sign-up. After choosing configure the MySQL Server now, start to configure MySQL, normal development users choose standard configuration can be configured, along with the default values given next, to let you enter the password link, Type the root password of the mysql you want and then next (it can be understood as the administrator password). Then execute, no accident, congratulations, MySQL configuration is complete.

2.Mysql GUI Tool Installation Nothing special, all the way next can be completed, after completion, you can open a program Mysql ADSMINISTRAOTR, if it is a native database, in the server host to fill in localhost, Username is root, the password is the administrator password you entered when you installed MySQL. If you can enter successfully, 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 explain, at the beginning of all next, when you configure the server information, the above three items can be filled, as long as the domain name, hostname and e-mail format, you can refer to its writing method. To be reminded, Apache HTTP port settings, it is the default is to use 80 port as HTTP service port, this is nothing strange, but if you installed on the same machine before IIS, then there is a problem, IIS in the HTTP service port is also 80, If you make Apache HTTP port 80 in here, it will not start the Apache service because of port conflicts. Then there are only two workarounds, either stopping or modifying the IIS HTTP service port, or modifying the Apache HTTP service port. Here, I can only assume that you have not installed IIS, then let Apache to occupy port 80. All right, next, all next. The installation of Apache is even over. In a future post, I'll describe how to modify IIS and Apache ports.

4. At the end of the installation of PHP, the Apache 2.2.x Module was selected at the beginning of the customary next,web Server setup because this is the Apache we just installed. Next select the Apache Configuration folder path, which is the apache2.2\conf directory in the previous Apache installation path. After selecting the components to install, note that, because in the future to connect to MySQL, so in the extensions to choose MySQL build, this is the key Oh! Next, the installation declaration is complete! Next, copy the Libmysql.dll of your PHP installation directory with the Php_mysql.dll in the Ext directory in the installation directory to the Windows\System32 directory, then, restart the Apache service, or simply restart the machine, Here, the installation of the configuration work even if it is over.

Hurry up, let's test it out. Type localhost in the browser to see if it works!. If so, congratulations again, Apache service is no problem. We then went to the Htdocs directory in the Apache installation directory to create a test.php file with the contents of



Echo Phpinfo ();
?>

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

Finally, test the connection with the MySQL database, and in the new test2.php file, add



$link =mysql_connect ("localhost", "root", "previous Administrator password");
if (! $link) echo "Not connected successfully!";
else echo "connected successfully!";
Mysql_close ();
?>

Back to the browser, type localhost/test2.php, it must be a successful connection!

Well, so far, apache+php5+mysql installation, configuration, testing work completed all ~ is not feel very excited ~

http://www.bkjia.com/PHPjc/318975.html www.bkjia.com true http://www.bkjia.com/PHPjc/318975.html techarticle Sweat. Not much nonsense, first listed the version of the program 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_ ...

  • 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.