In this basic tutorial, you will learn how to install XAMPP. XAMPP is used to run Apache HTTP Server, MySQL database, and interprets scripts written in the PHP. It is a great tool to test or host a website on your own machine. Lets see how install and start it.
- Download and Install.
- Now run the program.
- The control panel will open. You need to start the Apache and MySQL services and make sure that they are green.
Now, all you need to do is the browse to the installation folder of XAMPP and get to the htdocs folder. Assuming you installed XAMPP in c:\ then look for the following path.
Now make a folder named mywebsite inside the htdocs folder and inside it, make a file named index.php like this.
Open and edit the index.php file and add the following code.
echo "XAMPP has been installed and PHP is working fine".
Now, go to your browser, and visit one of the following links.
If you see the message in the above code. then you have not only installed XAMPP but you are now able to work with PHP.