Share your love
Install and Configure XAMPP on AlmaLinux 8
In this tutorial, we want to teach you How To Install and Configure XAMPP on AlmaLinux 8.
XAMPP is an acronym for Cross-Platform, Apache, MySQL, PHP, and Perl, with the Ps for PHP and Perl, respectively. It’s an open-source web-solutions kit that provides Apache delivery for various servers and command-line executables, as well as Apache API, MariaDB, PHP, and Perl modules.
XAMPP allows a local host or server to validate it on computers and laptops. It is a framework that provides a suitable environment for testing and verifying the functionality of projects based on Apache, Perl, MySQL, and PHP using the host’s framework. Perl is a web creation programming language, PHP is a backend scripting language, and MariaDB is MySQL’s most widely used database.
How To Install and Configure XAMPP on AlmaLinux 8
To install the XAMPP server, you must log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide the Initial Server Setup with AlmaLinux 8.
Now follow the steps below to complete this guide.
Set up XAMPP Server on AlmaLinux 8
First of all, you need to update your local package index with the following command:
sudo dnf -y update
Then, install the required packages by running the command below:
sudo dnf install libnsl wget
Now you need to visit the XAMPP Downloads page and get the latest release of XAMPP matching desired PHP version for your application requirements.
wget https://downloadsapachefriends.global.ssl.fastly.net/8.1.6/xampp-linux-x64-8.1.6-0-installer.run
When your download is completed, set the correct permissions for it with the following command:
sudo chmod a+x xampp-linux-*-installer.run
At this point, use the following command to run the XAMPP script installer on AlmaLinux 8:
sudo ./xampp-linux-x64-8.1.6-0-installer.run
Select components to install:
Output ---------------------------------------------------------------------------- Welcome to the XAMPP Setup Wizard. ---------------------------------------------------------------------------- XAMPP Core Files : Y (Cannot be edited) XAMPP Developer Files [Y/n] :y Is the selection above correct? [Y/n]: y ---------------------------------------------------------------------------- Installation Directory XAMPP will be installed to /opt/lampp Press [Enter] to continue: ---------------------------------------------------------------------------- Setup is now ready to begin installing XAMPP on your computer. Do you want to continue? [Y/n]: y ---------------------------------------------------------------------------- Please wait while Setup installs XAMPP on your computer. Installing 0% ______________ 50% ______________ 100% ######################################### ---------------------------------------------------------------------------- Setup has finished installing XAMPP on your computer.
At this point, you need to allow everyone to access the XAMPP server on AlmaLinux 8.
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“.
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.
Installation files of XAMPP are inside the /opt/lampp directory on AlmaLinux 8:
cd /opt/lampp
To list the usage options, run the command below:
sudo ./xampp --help
Usage: xampp <action>
start Start XAMPP (Apache, MySQL and eventually others)
startapache Start only Apache
startmysql Start only MySQL
startftp Start only ProFTPD
stop Stop XAMPP (Apache, MySQL and eventually others)
stopapache Stop only Apache
stopmysql Stop only MySQL
stopftp Stop only ProFTPD
reload Reload XAMPP (Apache, MySQL and eventually others)
reloadapache Reload only Apache
reloadmysql Reload only MySQL
reloadftp Reload only ProFTPD
restart Stop and start XAMPP
security Check XAMPP's security
enablessl Enable SSL support for Apache
disablessl Disable SSL support for Apache
backup Make backup file of your XAMPP config, log and data files
oci8 Enable the oci8 extenssion
panel Starts graphical XAMPP control panel
To start the XAMPP server, use the following command:
$ cd /opt/lampp $ sudo ./xampp start
You will get the following output:
Output
Starting XAMPP for Linux 8.1.6-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
Access XAMPP Web Interface
At this point, you can access your XAMPP on AlmaLinux 8 through the web interface. Type your server’s IP address in your web browser:
http://domain_name_OR_ip_address
You will see your XAMPP welcome page:
To see your PHP information, you can click on the PHPInfo at the top of the screen.
Also, to access the phpMyAdmin page you can click on the phpMyAdmin at the top of the screen.
Or you can type the URL with /phpmyadmin in the address bar:
http://domain_name_OR_ip_address/phpmyadmin
Conclusion
At this point, you learn to Install and Configure XAMPP on AlmaLinux 8.
Hope you enjoy using it.
You may be interested in these articles:
Install and Configure Varnish Cache for Apache on AlmaLinux 8.