18 April 2016

XAMP: Run php, MySQL, Apache on your windows, linux and os x

If you don't like reading skip to step 1.
.............................................................................
Lately, I have been diving into web development. Apart from CSS and HTML, one really needs to learn php, which is executed on the server. Apache is the software that runs on the server, that supports php. But, normally for testing and learning purposes, we don't need to buy a web host service. Simply, use XAMP.

Maybe this tutorial can be called: "How to run a web server on your pc"

Click the link below to download XAMP for various operating systems:
Download XAMP
...................................................................................
1. Install it in your system. Open xamp (it's called xamp control panel).
You will get a window like the one below:


2. Now start Apache.

3. Open your web browser and enter this http://localhost . There you will have the default home page for xamp where you can access PhpMyAdMin.




4. Where to add php files? The root directory is in a folder called "htdocs". Inside this folder add the php files. For example, I have added test.php inside it.








5. Now we can access the file by typing http://localhost/test.php via a browser.
Yes, I know. It is a really simple tutorial. But, we hope to make better ones as we also learn new things.


No comments:

Post a Comment