XAMPP Doc
Runnning XAMPP for PHP-MySQL server
About XAmpp
What is XAMPP?
XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P).
It is a simple and lightweight solution that allows you to create a local web server for testing and deployment purposes. It is open-source and free to use.
Running XAMPP :
The hosted website on xampp is from a designated htdocs folder.
This folder is initially at /opt/lampp/htdocs
but can be changed to any other folder.
Starting/ Stopping XAMPP Server
To start the XAMPP server, run the following command:
sudo /opt/lampp/lampp start
To stop the XAMPP server, run the following command:
sudo /opt/lampp/lampp stop
To restart the XAMPP server, run the following command:
sudo /opt/lampp/lampp restart
Sometimes we get the error XAMPP: Another web server daemon is already running.
To fix this, run the following command:
sudo systemctl stop apache2
View current status of the XAMPP server using :
sudo /opt/lampp/lampp status
Changing the htdocs folder
To change the htdocs folder, follow these steps:
- Open the
httpd.conf
file located at/opt/lampp/etc/httpd.conf
.
sudo nano /opt/lampp/etc/httpd.conf
- Find the line
DocumentRoot "/opt/lampp/htdocs"
and change it to the desired folder.
DocumentRoot "/home/vktori/htdocs_custom"
- Save the file and restart the Apache server.
sudo /opt/lampp/lampp restart