14 C
Texas
Melhttp://www.osradar.com
Guru Unix /Linux and GNU supporter

How to Use XAMPP on Linux

For any web developer, having a server is a must for developing a website or web pages and test them out if those works. However, setting up a full-size server instantly isn’t something that everyone can do. In fact, the process is pretty difficult and time-consuming at the same time. That’s why there’s an app that web devs love to use for all their projects – XAMPP.

XAMPP is a collection of various server tools – Apache HTTP server, MariaDB, PHP, and Perl. It’s also available on all the major platforms. The software is also maintained and upgraded regularly by Apache Friends, making it suitable for all types of web projects.

Today, let’s take a look at installing XAMPP on Linux.

Downloading XAMPP

XAMPP is available for Linux, Windows, and macOS. As we’re on Linux, we have to download the Linux installation package.

- Advertisement -

Go to Apache Friends download page. There, you’ll find out the proper download – an executable RUN file. Note that the program is no longer available in 32-bit, at least, for the latest versions. If you’re using a 32-bit, old schooled system, you should get XAMPP v7.0.8.

Here, I’m downloading the latest version (at the time of posting this post) – XAMPP 7.2.6.

Installing XAMPP

After you’ve downloaded the file, it’s time to install the program.

Assuming that the download is in “~/Downloads” folder,

cd ~/Downloads
sudo chmod +x xampp-linux-x64-7.2.6-0-installer.run

sudo ./xampp-linux-x64-7.2.6-0-installer.run

Voila! XAMPP is installed in your system!

Now, for easy enjoying XAMPP easily, edit “~/.bashrc”:

sudo nano ~/.bashrc

And add the following line at the end of the file:

alias xampp='cd /opt/lampp && sudo ./manager-linux-x64.run'

Reload the file into terminal:

source ~/.bashrc

Now, every time you run the command “xampp” on the terminal, it’ll open the XAMPP control window.

Note that XAMPP is installed in “/opt/lamp” directory, so you have to perform all the changes in that folder.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article