{"id":2155,"date":"2022-06-24T18:10:33","date_gmt":"2022-06-24T12:40:33","guid":{"rendered":"https:\/\/smarttech101.com\/?p=2155"},"modified":"2022-11-12T02:17:31","modified_gmt":"2022-11-11T20:47:31","slug":"how-to-install-and-manage-xampp-in-linux","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/how-to-install-and-manage-xampp-in-linux\/","title":{"rendered":"How to install and manage Xampp in Linux"},"content":{"rendered":"\n
Each letter in Xampp has a special meaning. X stands for cross-platform i.e. Xampp can be installed on any platform such as Windows OS, Linux-based OSes (hence called Lampp for Linux), etc. A stands for Apache web server. M stands for MySQL (actually, it is MariaDB; however both MySQL and MariaDB have the same command and tools). P stands for PHP. Next P stands for Perl. Therefore, it is an apache distribution with MySQL, PHP, and Perl. There are other programs as well – proFTPD, OpenSSH, SQLite, PHPMyAdmin, etc.<\/p>\n\n\n\n
Installing and managing these programs separately requires a lot of technical knowledge. Therefore, XAMPP came into existence. This provides lots of benefits – <\/p>\n\n\n\n
Now, to install Xampp on Linux, follow the steps given below.<\/p>\n\n\n\n
Download the Linux version from the official site Apache Friends<\/a>. At the time of writing this article, the downloaded file is Get into the Now, make the above-downloaded file executable by changing the execution bits into Now, execute that installer file:<\/p>\n\n\n\n You will see a Welcome Screen.<\/p>\n\n\n\n Select\/unselect the components based on your preference. But I will advise you to leave the recommended ticks. Now, hit As you can see the installation directory in Xampp is Now, hit the next button.<\/p>\n\n\n\n Hit the After the installation is finished, you will get the confirmation page:<\/p>\n\n\n\n Now, you can start the Xampp in Linux using the Finish button and tick mark as shown above. Use that, or follow step 6.<\/p>\n\n\n\n To start Xampp in Linux, execute the If the above command does not work, try executing To confirm if xampp started and everything worked fine, open up your favorite web browser and go to the website To stop xampp, execute the You can also create a symlink<\/a> in xampp-linux-x64-7.4.29-1-installer.run<\/code>. For you, the numbers in the filename might get changed but the procedure will remain the same.<\/p>\n\n\n\n
Step 2: install Xampp in Linux<\/h2>\n\n\n\n
~\/Downloads\/<\/code> or your downloaded directory:<\/p>\n\n\n\n
cd ~\/Downloads\/<\/code><\/pre>\n\n\n\n
-rwxr-xr-x<\/code>:<\/p>\n\n\n\n
sudo chmod 755 xampp-linux-x64-7.4.29-1-installer.run<\/code><\/pre>\n\n\n\n
sudo .\/xampp-linux-x64-7.4.29-1-installer.run<\/code><\/pre>\n\n\n\n
Step 3: Select the Xampp components you want<\/h2>\n\n\n\n
Next<\/code> button.<\/p>\n\n\n\n
Step 4: Installation directory in Xampp<\/h2>\n\n\n\n
\/opt\/lampp\/<\/code> or
\/opt\/xampp\/<\/code>. Xampp’s files will not be installed anywhere else. So, unlike other Linux applications, you will not have any
*.desktop<\/code> file in
\/usr\/share\/applications\/<\/code>, no
systemd<\/code> files, no files in the
\/bin\/<\/code> directory. You will have to create them if you want to use them. In the end, I will show you that since I find them very useful.<\/p>\n\n\n\n
Step 5: Ready to install Xampp in Linux<\/h2>\n\n\n\n
Next<\/code> button in the
Ready to install<\/code> page.<\/p>\n\n\n\n
Step 6: Run Xampp in Linux<\/h2>\n\n\n\n
\/opt\/lampp\/lampp start<\/code> command:<\/p>\n\n\n\n
[ajay@lenovo ~]$ sudo \/opt\/lampp\/lampp start\n[sudo] password for ajay:\nStarting XAMPP for Linux 8.1.6-0...\nXAMPP: Starting Apache...ok.\nXAMPP: Starting MySQL...ok.\nXAMPP: Starting ProFTPD...ok.<\/code><\/pre>\n\n\n\n
\/opt\/lampp\/xampp start<\/code> because in some versions of xampp, words
lampp<\/code> and
xampp<\/code> are interchanged.<\/p>\n\n\n\n
http:\/\/localhost<\/code>. You should see the following screen:<\/p>\n\n\n\n
http:\/\/localhost<\/code> <\/figcaption><\/figure>\n\n\n\n
\/opt\/lampp\/lampp stop<\/code> command:<\/p>\n\n\n\n
[ajay@lenovo ~]$ sudo \/opt\/lampp\/lampp stop\nStopping XAMPP for Linux 8.1.6-0...\nXAMPP: Stopping Apache...ok.\nXAMPP: Stopping MySQL...ok.\nXAMPP: Stopping ProFTPD...ok.<\/code><\/pre>\n\n\n\n
\/bin<\/code> directory for ease:<\/p>\n\n\n\n
[ajay@lenovo ~]$ ln --symbolic \/opt\/lampp\/lampp \/bin\/lampp<\/code><\/pre>\n\n\n\n