Setup Apache 2, MySQL 5 and PHP 5 on Windows in 5 minutes
Although we all agree that Linux is the ideal platform for such applications, it can still happen to also have the need to install Apache, MySQL and PHP on Windows. The main problem in this case is not so much to install individual applications, how to configure for smooth integration. And on Windows this may be more confusing than Linux in which the steps to be performed are very clear and precise.
In this situation we can assist XAMPP, a special installer made for Windows (although still there are versions for Mac OS X, Solaris and Linux) that installs in a single operation a comprehensive package of Apache, MySQL and PHP pre-configured and ready to use, complete with a unified management console. Indeed, to be precise the bundle of XAMPP installed and configured on your PC the following applications:
- Apache HTTPD 2.2.8 + Openssl 0.9.8g
- MySQL 5.0.51a
- PHP 5.2.5
- PHP 4.4.8
- phpMyAdmin 2.11.4
- FileZilla FTP Server 0.9.25
- Mercury Mail Transport System 4:52
Here's how you can have your installation running within 5 minutes:
- Download XAMPP for Windows from this page, taking care to select the version with the 'Installer.
-
Before you begin installation you should verify that it has no program running that takes up port 80 on your PC, in particular pay attention to Skype (if it is installed and running), which by default uses port 80 as an alternative for connections input.
To disable this option select "Tools => Options => Connection" and check that its checkbox is selected.
-
Start the installation wizard and how to leave the default installation directory "C: \ xampp" (this will save you a whole range of potential permission problems especially if you use Windows Vista):
-
Select the installation options: in particular, you can choose to leave on or off the option to also install the FTP server Filezilla Server:
-
After confirming the installation files and begin the creation of services
-
If there are particular problems ternine dell'installazioone appear the following window:
At this point the suite Apache + MySQL + PHP is already up and running: thanks to XAMPP Control Panel, you can have full control of the three services installed, configured to your liking the startup mode (automatic, manual, ...)
You can check the operation of your installation by simply opening a browser http://localhost address: You will be automatically redirected to the default page of XAMPP from which you can check the operation of the various components already installed and ready for use:
Pretty easy, right?











Excellent article: I used xampp some time ago and it worked pretty well (I only had some problems with the Microsoft SQL Server, but is a general problem with php). I have also used mercury, a bit 'complex but very interesting for mail on Windows. However I have seen that with php 5 on Windows, if you have a trivial SMTP installed and which meets on 25 of localhost - you have an article about it on this blog), the shipment dell'emeil works fine (once had a problem with the shipment the email with php 4 on windows).
Excellent article!
Congratulations really excellent guide to who is approaching for the first time in the world Apache / PHP / MySQL. I have always used EasyPHP for something emotional, it was the first software All-Inclusive, to produce a complete Web server on your Windows PC ... again congratulations!
I also wanted to let you know that we are looking for bloggers, writers, freelancers and "journalists" improvised for a new site Books Social / / Made in Italy by the name ... and then invite NotizieFLASH.com: we like the news of all, especially in technology and computer articles you expect you will be welcome!