Effortlessly set up XAMPP on Linux with our step-by-step guide, creating an optimal environment for PHP and Perl development.
XAMPP, an acronym for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P), and Perl (P), is a versatile web server solution that facilitates the development and testing of dynamic web applications. This guide will walk you through the step-by-step process of installing XAMPP on Linux, catering to users across different Linux operating systems.
Prerequisites:
Kali Linux system
Internet connection
A non-root user account with sudo privileges
Installing XAMPP on Linux:
Download the XAMPP installer package:
Visit the official XAMPP website to download the appropriate installer for your Linux distribution.
Change file permissions:
Open the terminal and navigate to the directory containing the downloaded package.
Execute the command sudo chmod +x xampp-linux-*-installer.run to make the installer executable.
Run the XAMPP installer:
Run the installer using the command sudo ./xampp-linux-*-installer.run.
Follow the installation wizard:
The wizard will guide you through language selection, installation location, and component choices.
Start the XAMPP server:
After installation, initiate the server with sudo /opt/lampp/lampp start.
Verify the installation:
Open a web browser and go to //localhost to confirm the successful installation by viewing the XAMPP welcome page.
The default installation directory for XAMPP depends on the operating system:
Windows: C:\xampp
macOS: /Applications/XAMPP/
Linux: /opt/lampp or /usr/local/xampp
To access XAMPP without reinstalling it, you can simply start the XAMPP server. The specific steps for starting the XAMPP server.
Linux:
Open a terminal window.
Navigate to the XAMPP installation directory (e.g., /opt/lampp).
Run the following command:
sudo /opt/lampp/lampp start
Verify that the XAMPP server is running by opening a web browser and navigating to //localhost.
Once the XAMPP server is started, you can access it by navigating to //localhost in your web browser. You can also access specific XAMPP components by navigating to the following URLs:
Apache: //localhost/xampp/
PHPMyAdmin: //localhost/phpmyadmin/
MariaDB: //localhost:3306/
FTP Server: ftp://localhost/
To start XAMPP from the current directory, you can use the following command:
./lampp start
This command will start all of the XAMPP components, including Apache, MySQL, and PHP.
If you want to start only specific components, you can use the following commands:
To start Apache:
./apachectl start
To start MySQL:
./mysql.server start
To start PHP:
./php-fpm start
To start Xampp from the home directory.
sudo /opt/lampp/lampp start
You can create a custom launcher for the XAMPP start and XAMPP Control Panel on Kali Linux using the following steps:
Right-click on the desktop and select "Create Launcher".
In the "Create Launcher" window, type the name for your launcher, such as "XAMPP Start" or "XAMPP Control Panel".
For the command to start XAMPP, type the following:
sudo /opt/lampp/lampp start
For the command to open the XAMPP Control Panel, type the following:
sudo /opt/lampp/./manager-linux-x64.run
Save the launcher.
To start XAMPP, double-click the launcher you created.
To open the XAMPP Control Panel, double-click the launcher you created.
The start launcher will allow you to type your admin password, start XAMPP, and disappear. The XAMPP Control Panel launcher will open the XAMPP Control Panel.