In this article, we want to show you How To Install and Configure XAMPP on Debian 11.
XAMPP is an open-source software developed by Apache Friends. XAMPP software package contains Apache distributions for Apache server, MariaDB, PHP, and Perl. And it is basically a local host or a local server. This local server works on your own desktop or laptop computer. The use of XAMPP is to test the clients or your website before uploading it to the remote web server. This XAMPP server software gives you a suitable environment for testing MYSQL, PHP, Apache, and Perl projects on the local computer.
The full form of XAMPP is X stands for Cross-platform, (A) Apache server, (M) MariaDB, (P) PHP, and (P) Perl. Cross-platform usually means that it can run on any computer with any operating system.
Steps To Install and Configure XAMPP on Debian 11
Before you start to install XAMPP, you need to log in to your server as a non-root user with sudo privileges. To do this, you can follow our article the Initial Server Setup with Debian 11.
Now follow the steps below to complete this guide.
Install XAMPP on Debian 11
First, you need to update your local package index with the following command:
sudo apt update
Download XAMPP for Linux
Then, you need to visit the Apache Friends Downloads page and copy the link address of XAMPP for Linux. And Use the wget command to download it:
Now set the correct permissions for your downloaded file with the following command:
sudo chmod 755 xampp-linux-x64-8.1.4-1-installer.run
Next, run your XAMPP installer script on Debian 11 with the following command:
You will be asked some questions, enter y to continue your installation.
When your installation is completed, you will get the following output:
Output Please wait while Setup installs XAMPP on your computer. Installing 0% ______________ 50% ______________ 100% ######################################### ---------------------------------------------------------------------------- Setup has finished installing XAMPP on your computer.
Configure XAMPP Server
At this point, you need to allow everyone to access the XAMPP server on Debian 11.
Open the /opt/lamp/etc/extra/httpd-xampp.conf file and add a line ” Require all granted” and comment out or delete the line “Require local“.
sudo vi /opt/lampp/etc/extra/httpd-xampp.conf
<Directory "/opt/lampp/phpmyadmin"> AllowOverride AuthConfig Limit Require all granted ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </Directory>
When you are done, save and close the file.
At this point, restart your XAMPP service on Debian 11 with the command below:
Restarting XAMPP for Linux 8.1.4-1... XAMPP: Stopping Apache...ok. XAMPP: Stopping MySQL...ok. XAMPP: Starting ProFTPD...ok.
Access XAMPP Web Interface
At this point, you can access your XAMPP on Debian 11 through the web interface. Type your server’s IP address in your web browser:
If you want to access the phpmyadmin page just type the URL of with /phpmyadmin in the address bar.
At this point, you learn to Install and Configure XAMPP on Debian 11.
Hope you enjoy it.
You may be like these articles: