How to Install Xampp in Ubuntu 22.04 using Terminal?

By Hardik Savani November 5, 2023 Category : Ubuntu

Hello Friends,

In this quick example, let's see how to install xampp in ubuntu. It's a simple example of how to install xampp in ubuntu 22.04 using terminal. We will use install xampp in linux using terminal. This post will give you a simple example of ubuntu 22.04 install xampp.

To install XAMPP (a popular web server software stack) on Ubuntu, follow these step-by-step instructions:

Step 1: Open the Terminal

You can open the terminal in Ubuntu by pressing `Ctrl` + `Alt` + `T` together or by searching for "Terminal" in the Applications menu.

Step 2: Update the Package List

It's a good practice to make sure your package list is up to date. Run the following command to update the package list:

sudo apt update

Step 3: Download XAMPP

You can download the latest version of XAMPP from the official website. Open a web browser and navigate to the [XAMPP download page](https://www.apachefriends.org/index.html). Choose the version for Linux (usually 64-bit) and download the installer.

Step 4: Navigate to the Downloads Directory

By default, the downloaded file will be placed in the Downloads directory. You can navigate there using the terminal:

cd ~/Downloads

Step 5: Make the Installer Executable

Before you can run the XAMPP installer, you need to make it executable using the `chmod` command:

chmod +x xampp-linux-x64-VERSION-installer.run

Replace `VERSION` with the actual version number you downloaded.

Step 6: Run the Installer

Execute the XAMPP installer with superuser privileges using `sudo`:

sudo ./xampp-linux-x64-VERSION-installer.run

Replace `VERSION` with the actual version number you downloaded.

Step 7: Follow the Installation Wizard

The XAMPP installation wizard will launch. Follow these steps:

- Welcome: Click "Next."

- Select Components: Leave the default components selected (Apache, MySQL, PHP, and phpMyAdmin). Click "Next."

- Installation Folder: You can leave the default installation folder as `/opt/lampp`. Click "Next."

- Bitnami for XAMPP: You can uncheck this option unless you specifically need Bitnami applications. Click "Next."

- Start XAMPP: You can choose to start XAMPP automatically when your computer starts or manually. Click "Next."

- Installation: The installer will now proceed to install XAMPP. This may take a few moments.

- Finish: Once the installation is complete, click "Finish."

Step 8: Start XAMPP

To start XAMPP, open the terminal and run:

sudo /opt/lampp/lampp start

This will start the Apache web server and MySQL database server.

Step 9: Access the XAMPP Control Panel

Open your web browser and go to `http://localhost` or `http://127.0.0.1`. You should see the XAMPP control panel, where you can start and stop the Apache and MySQL servers, access phpMyAdmin, and configure other settings.

That's it! You have successfully installed XAMPP on your Ubuntu system. You can now use it for web development and testing locally.

Tags :
Shares