Skip to main content

How to Install XAMPP on your Ubuntu Computer

Please follow the following steps in order to download, install and configure XAMPP on your system:

Step 1: Download the installation package

The first step is to download the XAMPP package for Linux from the official Apache Friends website:
Download Xampp
Click on the XAMPP for Linux option after which you will be prompted to Run the package or Save it to your system. We recommend downloading the package by clicking the Save File option. After which, your downloaded file will be saved to the Downloads folder by default.

Step 2: Make the installation package executable

We will install the package through the Ubuntu command line, The Terminal. In order to open the Terminal, either use the Dash or the Ctrl+Alt+T shortcut. After the Terminal is open, you need to move to your Downloads folder to access the file.
Move to the Downloads folder by using the following command:
$ cd /home/[username]/Downloads
The installation package you downloaded needs to be made executable before it can be used further. Run the following command for this purpose:
$ chmod 755 [package name]
Example:
$ chmod 755 xampp-linux-x64-7.2.10-0-installer.run
Make XAMPP installer executable
Now the install package is in an executable form.

Step 3: Confirm execute permission

It is important to verify if the package can be executed by the current user. The execute permission can be checked through the following command:
$ ls -l [package name]
Example:
$ ls -l xampp-linux-x64-7.2.10-0-installer.run
Check if XAMPP installer can be executed
The -rwxr output shows that the file can be executed by the user whose name is also mentioned in the output.

Step 4: Launch the Setup Wizard

As a privileged root user, run the following command in order to launch the graphical setup wizard.
$ sudo ./[package name]
Example:
sudo ./xampp-linux-7.2.10-0-installer.run
Start XAMPP installer
This will launch the Setup wizard that will direct you with the rest of the installation procedure.

Step 5: Work through the graphical setup wizard

Now that the Setup Wizard for XAMPP by Bitnami is launched as follows, click the Next button to start the installation process:
Welcome to XAMPP setup wizard
The following dialog lets you choose XAMPP components that you want to install.
Choose which XAMPP components to be installed
Keep the default settings intact and then click Next. The following dialog will inform you about the location where XAMPP will be installed.
Select installation directory
Click Next to continue. The following dialog gives you the option of installing sponsored applications such as Drupal, Joomla, and WordPress etc. You can avoid Bitnami to install these applications by unchecking the ‘Learn more about Bitnami for XAMPP’ checkbox.
Choose if you want to install Bitnami installers
Click the Next button after which the following dialog will appear:
Start installation process
Click Next to begin the installation process:
Installing XAMPP
When the installation is complete, click the Next button. The following dialog indicates the completion of the installation process.
Setup completed
If you do not want to Launch XAMPP at this moment, uncheck the Launch XAMPP option. Also, click Finish to close the Setup dialog.

Step 6: Launch XAMPP through the Terminal

In order to launch XAMPP through your Ubuntu Terminal, enter the following command as root:
$ sudo /opt/lampp/lampp start
Launch XAMPP
This output shows that XAMPP is started and already running. Please note that you need to manually start XAMPP each time you restart your system.
If you get the following output after starting XAMPP, it means that Net Tools are not installed on your system:
Possible errors when starting XAMPP
In order to install Net Tools, run the following command as root:
$ sudo apt install net-tools
Installing net tools
After the installation of Net Tools, you will be successfully able to launch and use XAMPP.

Step 7: Verify Installation

After you have installed XAMPP on your Ubuntu system, it is good practice to verify the installation. To do so, enter the following URL in your FireFox browser:
http://localhost
The following webpage verifies that XAMPP is successfully installed and running on your system:
XAMPP Apache start page
You can also verify the installation of phpMyAdmin in a similar manner by entering the following URL in your browser:
http://localhost/phpmyadmin
The following webpage verifies that phpMyAdmin is successfully installed and running on your system:
PHPMyAdmin

--------------------------------------------------------------------------------------

Uninstall XAMPP

It is also important to learn how to completely uninstall and remove XAMPP from your Ubuntu system if you ever need to do so.
Open your Ubuntu Terminal and move to the directory where XAMPP is installed. That is:
$ cd /opt/lampp
The next step is to run the uninstall program you will find in the lampp folder through the following command:
$ sudo ./uninstall
The following dialog will appear asking you if you want to uninstall XAMPP and all of its modules:
Command to uninstall XAMPP
Click Yes to proceed with the uninstall process.
Uninstalling XAMPP
You will get the following message after successful uninstallation of XAMPP.
Uninstall completed
Click OK.
Another important step is to manually remove the lampp folder along with all its files and sub-folders. The following command will help you in doing so:
$ sudo rm -r /opt/lampp
Delete remaining files and folders
Now, XAMPP and all its modules are out of your system. You can also delete the downloaded install package if you want.





This is for personal documentation purposes.


THANK YOU




Comments

Popular posts from this blog

Add Printer: Windows cannot connect to the printer. FIXED!

  Fix Windows Cannot Connect to the Printer Issue. Easily! 1. Search "Registry Editor" 2. Locate Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print and right-click select  New > Key  >  "DWORD (32-bit) Value" 3. Rename the file to  RpcAuthnLevelPrivacyEnabled 4. Right Click select " Modify..." 5. Make sure the Value name is correct " RpcAuthnLevelPrivacyEnabled" Value Data is 0  and the Base is Hexadecimal and click  OK . And now follow the steps below to stop the Print Spooler service  and then start it again. 1. Press Win+R (Windows logo key and R key) at the same time. A Run dialog box will open. Type services.msc in the run box and click OK button. 2. In the Name list, locate and double-click on services  Print Spooler . 3. Click Restart. Congratulations! 

Remote Desktop Services session timeout Setup in RD Session Host in Windows Servers

  If you face a session time-limit policy issue that gets disconnected in the meantime. You can follow the steps below in order to fix the issue, By default, the user’s RDP session in Windows may stay disconnected until the user or administrator terminates, or the computer is restarted. However, it is quite convenient since a user may connect to his old RDP session and go on working with running programs. In order to terminate disconnected RDP/RDS sessions automatically in a specified time period, you need to set session limits (time-outs) correctly. If you are using an RDS server, you will have to configure session time-out parameters from the RDS collection settings in the Session tab menu. You will have to Specify the time period after which you want to disconnect the RDP session. Lastly, a disconnected session option (by default, a session period is unlimited – Never). Thus, you can set the maximum duration of an active session (Active session limit) and end an idle session (Id...

How to add your Source Code to GitHub

Quick setup  — if you’ve done this kind of thing before  Set up in Desktop or HTTPS SSH Get started by  creating a new file  or  uploading an existing file . We recommend every repository include a  README ,  LICENSE , and  .gitignore . …or create a new repository on the command line echo "# bms" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/xxxxxxxxx/bms.git git push -u origin main …or push an existing repository from the command line git remote add origin https://github.com/xxxxxxxxxx/bms.git git branch -M main git push -u origin main -------------------------------------------------------------------------------------------------------- Proper steps to add existing code to GitHub The proper way to push a new project into an existing GitHub repository follows these steps: Create a GitHub repository for the existing project. Copy the GitHub URL for th...