XAMPP is the most popular and the most compatible package which is used to set up a runtime environment for various technologies like
PHP, MySQL, PERL, etc. It is a single solution to many problems. It is widely used to create a live PHP based server within the local computer, which helps the developer to run the script without the use of the actual online server.
For MySQL also, you can choose to separately download MySQL for your system or you can choose XAMPP that comes with MySQL Server pre-packaged along with Apache( PHP Server) and other technologies. XAMPP also offers additional software tools like PHPMyAdmin for
JSP Tomcat server,
FileZilla FTP server, etc. All of the services in one place.
In this tutorial, we will see how you can download XAMPP for your local system and its installation process. We will also go through some of the common queries regarding the XAMPP server. We are taking Windows as an example here, all the steps are quite similar in every OS. Let’s start:
‘XAMPP for Windows’button to download the latest XAMPP package.
‘C:\xampp’, change it if you want, or just go with the default. In this case, the
‘htdocs’folder will be inside the ‘XAMPP’ folder.
To Check if PHP is Working: After starting the servers, to check if those are working perfectly, then go to your browser and type
http://localhost/index.php. It will run the default index page within the ‘htdocs’ folder or it will show an error if the apache server is not working properly.
For example, if we create a folder coderepublics inside ‘htdocs’ and it has a file named as
‘index.php’, then the root ‘URL’ of the website will be
‘http://localhost/coderepublics/’. The servers take ‘index.php’ as homepage and it is not necessary to specify this file in the URL as the servers will automatically open it if you don’t specify any filename. Other than that if you want to open a particular file then you have to include the name of that file, for example:
open-sourcepackage and easily available for many platforms like Windows, Linux, and Mac OS.
lightweightand very easy to use.