How to Install Xampp in Ubuntu 22.04 using Terminal?
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.
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Install FFmpeg in Ubuntu 22.04?
- How to Install Apache Maven on Ubuntu 22.04 Terminal?
- How to Install Let's Encrypt SSL Certificate on Ubuntu 22.04?
- How to Install MySQL 8 in Ubuntu 22.04 Terminal?
- How to Enable ufw Firewall in Ubuntu 22.04?
- How to Disable ufw Firewall in Ubuntu 22.04?
- How to Delete File in Ubuntu 22.04?
- How to Change Root Password in Ubuntu 22.04?
- How to Zip & Unzip Files in Ubuntu 22.04 Terminal?
- Ubuntu 22.04 No Wi-Fi Adapter Found - Solved
- How to Delete and Remove File in Ubuntu Terminal?
- How to Install NetBeans 11 in Ubuntu 22.04?
- How to Install Django Web Framework in Ubuntu 22.04?