To use XAMPP on Ubuntu, begin by downloading the XAMPP installer for Linux from the Apache Friends website.
Once downloaded, open a terminal, navigate to the download directory, and make the installer executable by running chmod +x xampp-linux-x64-installer.run
, adjusting the filename if necessary. Next, execute the installer using sudo ./xampp-linux-x64-installer.run
and follow the on-screen instructions to complete the installation.
- See also:
Install Steps
To install XAMPP on Ubuntu, you can follow these steps:
-
Download XAMPP: Visit the official XAMPP website and download the Linux version of XAMPP. Choose the version that suits your needs.
-
Open a Terminal: You can open a terminal by pressing
Ctrl + Alt + T
or searching for "Terminal" in the Ubuntu Dash. -
Navigate to the Downloads directory: Use the
cd
command to navigate to the directory where the downloaded file is located. For example:cd ~/Downloads
-
Give execute permission to the installer: Run the following command to give execute permission to the downloaded installer:
chmod +x filename.run
Replace
filename.run
with the actual name of the downloaded file. -
Run the installer: Execute the XAMPP installer using the following command:
./filename.run
Again, replace
filename.run
with the actual name of the downloaded file. -
Follow the installation wizard: The XAMPP installation wizard will guide you through the installation process. You'll be prompted to choose the components you want to install. You can select Apache, MySQL, PHP, and other components based on your requirements.
-
Choose installation directory: Specify the directory where you want to install XAMPP. The default directory is often
/opt/lampp
. -
Complete the installation: Follow the on-screen instructions to complete the installation. The installer will set up the selected components and create shortcuts.
-
Start XAMPP: After the installation is complete, you can start XAMPP by running the following command in the terminal:
sudo /opt/lampp/lampp start
This will start the Apache web server and MySQL database.
-
Access the XAMPP Control Panel: Open your web browser and go to
http://localhost
orhttp://127.0.0.1
. You should see the XAMPP welcome page. -
Access phpMyAdmin: To access phpMyAdmin, go to
http://localhost/phpmyadmin
in your web browser. Here, you can manage your MySQL databases.
You should now have XAMPP installed and running on your Ubuntu system. You can use the instructions here to run XAMPP on Ubuntu.