- Back to Home »
- PHP Tutorial »
- Easy PHP and MySQL Installation Tutorial
Posted by : senan
Wednesday, February 12, 2014
Installing PHP on Windows
Installing PHP is easy. You can install PHP on your computer easily with WAMP5. WAMP5 is an open source application which comes with with PHP5, Apache web server, MySQL database and phpMyAdmin (mysql database administration program). You can install these items on your windows machine using WAMP5. You can read more about WAMP5 at www.wampserver.com.
Installing WAMP5
- Download the latest version of WAMP5.
- Run the installation wizard and follow the easy instructions to install WAMP5.
- Once you're done installing WAMP5, please go to your folder where you installed wamp5. If you didn’t specify which folder to install wamp during the installation wizard, then it should be installed in your C:/ drive, i.e. C:/wamp.
- In your wamp directory you should see the following folders.
- apache2 – This is where the apache web server is installed. Apache will run our php code and scripts on the web browser. You will not need to do anything in this folder. So you can relax and ignore it for now:)
- mysql – This is where MySql databse is installed. MySQL is an open source database. PHP and MySQL work really well together. You can use PHP and MySql to store data. Don’t worry, we will learn how to do all that in our tutorials.
- php – You guessed it. This is where php modules are stored.
- www – This is the root folder of our web server. This is where you are going to put all your php files and scripts.
- wampserver.exe – This file will run the WAMP program. We need to start WAMP everytime we want to work with PHP. So, go ahead and double click on this file.
- Once you run the wamp server file, you will see a small icon on your windows tray.
Right click on this icon and then click on “Start All Services”. This will start the apache web server along with everything we need to run PHP pages on our machine. - Now open up your web browser and type in http://localhost. You should see the WAMP welcome page.
That it! You’re almost done.
When you type in http://localhost in your browser, it executes the index.php file in your www folder. All our php files will go in the www folder. Follow the next tutorials to see how that is done.
There you have it! You’re now ready to begin your adventures in the PHP world. I know you must be excited. I know I’m :D