I installed XAMPP in Installation of XAMPP. Today, I’ll use XAMPP as a test environment for PHP.
GOAL
To setup XAMPP and start PHP development in XAMPP.
How to start XAMPP
Be sure that the started module is stopped before quitting the control panel.
Method 1 Use xampp/xampp-control.exe
Right-click and run as administrator “xampp/xampp-control.exe” or “XAMPP Control Panel” in start menu.
Click “Start” buttons on the control panel.
If you add modules as a service, the check box is checked. *You can’t see whether the check box is checked if you run the control panel as a non-administrator.
In this article below, a situation in which all modules are not registered as a service is supposed.
Click “Start” to start Apache and access localhost to confirm that apache is running.
Method 2 Use batch file
Use batch files in xampp\ directory to start each application individually.
xampp\xampp_start.exe xampp\xampp_stop.exe xampp\apache_start.bat xampp\apache_stop.bat mysql_start.bat, mercury_start.bat and filezilla_start.bat
Run your php program
The directory “xampp\htdocs” is document root that is assigned to localhost. So you can run your php program by putting the php file here.
Open xampp\htdocs\index.php and you can see the program to redirect users to localhost/dashboard by using header() function.
Today’s goal is to understand what XAMPP is and how to install it. This article doesn’t contain how to use XAMPP or PHP.
Environment
Windows10 XAMPP 7.4.10
What is XAMPP?
XAMPP is a free development environment for PHP. It contains the set of basic free software for web development, such as Apache, MariaDB as a SQL server, PHP, Perl, phpMyAdmin and OpenSSL.
You can see what software is included in XAMPP in the official site.
XAMPP is an acronym for cross platform(X), Apache, MariaDB, PHP and Perl.
How to Install XAMPP
1. Download
Access “Download” page in the official site. And download any version of XAMPP you like.