XAMPP installization guide for Linux - Ubuntu users


 Hello guys,

It is a special post for Linux/Ubuntu users and is only made for Linux/Ubuntu users. 

1. what is Xampp?

2. How to install the Xampp server on your Linux device?

3. How to open the XAMPP Server after installing it?

4. How to put the Xampp server visible on the home screen?

5. How to give access permission for htdocs folder?

6. How to uninstall the Xampp server?

1. What is XAMPP? 

If you are a PHP with MySQL developer then you must have an idea about the Xampp server. You all know that the languages such as PHP, Perl, MySQL, etc. are never run on a personal computer, they are workes only on the server. In this situation, the Xampp server helps the developers to create and run their projects on their own Personal Computers ( localhost). So most PHP developers installed the Xampp server to test their projects. Xampp server is an open-source cross-platform that was developed by Apache friends in 2002. The initial version of the Xampp server has been realized on  4th September 2002. Xampp consists of an Apache HTTP server, MariaDB, PHP, Perl, etc... The interesting fact about Xampp is available in 11 different languages. Such as English, German, French, Dutch, Polish, Italian, Norwegian, Spanish, Chinese, Brazilian Portuguese, and Japanese. 

In this post, we are gonna show you some basic aspects of the Xampp server such as installation, how to put it on the home screen, how to set permission for access on htdocs, etc... So let's go to the main content. 

2. How to download and install Xampp on your Linux device?

1. First of all, you want to go on the official site of apache friends.org

2. After scrolling down. Then you can able to see 3 buttons ( for 64-bit PC). 

XAMPP installization guide for Linux Ubuntu users
Click the button that has written Xampp for Linux.

3. After the file must be downloaded in your system. 

After completing the step of downloading, you want you open your terminal by clicking ctrl+alt+T. after this tab, you can able to see the terminal.

Read and type these commands on your terminal carefully

Copy the command in white colour and paste it on your terminal. Don't be scared it is very simple. 

user@fluratech:~$ cd Downloads user@fluratech:~/Downloads$ chmod +x xampp-linux-x64-7.2.9-0-installer.run user@fluratech:~/Downloads$ sudo ./xampp-linux-x64-7.2.9-0-installer.run [sudo password for fluratech: your sudo password goes here, password typed in this password are not visible.]

Remember: ^^^

1. The line-number 2 and 3 contain the file name (xampp-linux-x64-7.2.9-0-installer.run). This filename sometimes does not work in your system. Because there is a chance to have a change in the file name so you want to go to your Downloads folder and copy the file name and paste it on the terminal else you can type xampp and click on the tab button then the file name is automatically filled. 

2. Make sure that the Xampp file that you downloaded in your system is in the Downloads folder.

Step 1: Copy the white command from the top box( cd Downloads) and paste it on your terminal and click enter

Step 2: After completing step 1, you can able to see the second green line. Then copy the second white line from the top command box and paste it on your terminal. And click enter. 

Step 3: After you can able to see the next green line in your terminal. Copy and paste the thread white line from the top command box and paste it into your terminal and click enter. 

Step 4: The terminal asks you for a Sudo password. 

A Sudo password is the password that you are used to log into your computer. Write the sudo password and press Enter. After completing this step the installation window will pop up on your screen. 

Step 5: click the next 4 times, after the fourth next click the insulation will be started. The installation takes 10 to 20 minutes.

Step 6: After that click finish. 

Step 7: Now Xampp server is successfully installed on your PC. But you cannot able see it on the main page and menu. Don't worry, I will solve your problem. Keep reading...

3. how to open the Xampp server?

You can't able to open Xampp directly from the home window. Because Linux, Ubuntu, etc... Are not user-friendly as well as windows. So there is no user interface for opening it directly. In this situation, you want to write a comment for the Open Xampp server. 

After this, we are going to create a folder that helps you to go directly to the Xampp server. First of all, you want to read the steps carefully. 

user@flurabula:~$ cd /opt/lampp user@flurabula:/opt/lampp$ sudo ./manager-linux-x64.run [sudo password for fluratech: your sudo password goes here, password typed in this password are not visible.]
After you can able to see a popup window of Xampp. 
XAMPP user interface Linux Ubuntu
Click on the management server and you can see the start/stop button. Click start for the start server and click on stop for the stop server. 
Start XAMPP on Ubuntu device
Enjoy programming Carrie with Xampp

4. How to put the Xampp server visible on the home screen?

Now I am going to solve the problem that you are going to face. The problem is not so big. But you don't like that. if you are creating a project, to run the project you want to start the Xampp server. incase of Linux, you want to write a command I don't like that. So I am going to solve the problem.

Create a .txt file from any word processor and put this code on it.

[Desktop Entry] Encoding=UTF-8 Name=XAMPP Control Panel Comment=Start and Stop XAMPP Exec=sudo /opt/lampp/manager-linux-x64.run Icon=/opt/lampp/htdocs/favicon.ico Categories=Application Type=Application Terminal=true

give it a name as Xampp.txt and change the extension .txt to .desktop

Step 1: Go to the home folder and click the 3 dots seen on the top right side. After you can able to see the button contain show hidden files accept the check box.

How to put the Xampp server visible on the home screen?

Step 2: Go to the following folder.

Home >> .local >> share >> applocations >> paste the file Xampp.desktop

 Paste the file that we created ( Xampp.desktop)

Step 3:

How to put the Xampp server visible on the home screen?

follow the following step

@ Right click on the file Xampp.desktop and click permission button.

 @ make change in other access to read and write and save.

step 4:

How to put the Xampp server visible on the home screen?

 Drage it on the home screen. After double clicking on the file. Then you can able to see a popup notification accept (Trust and launch) it and the shortcut is ready.

if you have any doubts, comment on it.. 

5. How to give access permission for htdocs?

Now we have completed the steps of  XAMPP installation and other basic stuff. The next step is to give permission to access the file in htdocs. 

What is htdocs?

Htdocs is the file that helps us to store and run projects that we are created.  For the first use, we want to give permission. If you don't give permission then you can't able to delete or move the file.  So giving permission to access is much necessary. 

 Steps

 It is not so hard, you want to run the comment that we gave below.
Copy and paste the command and enter.
sudo chmod -R 777 /opt/lampp/htdocs

Related Posts

Comments