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

Reset 120 day RDS Grace period on 2016 and 2019

  Reset 120 day RDS Grace period on 2016 and 2019 Enter the following command to check Grace Period: wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !=””) CALL GetGracePeriodDays  Confirm-deletion-of-the-timebomb-key-in-the-registry If you have a home lab environment or another lab where you continually test various solutions, licensing, and trial expiration is a challenge that you constantly tend to run into. It is just part of the fun of lab environments. While most trials are fairly “hard and fast” and don’t allow you to reset the trial expiration, if you work with Microsoft Windows Server and Remote Desktop Services (RDS), there is a “hack” that allows you to effectively reset the expiration of  Remote Desktop  Services grace period where you can essentially rewind the clock on your RDS licensing if you are making use of this role inside your lab environment. I am using Windows Server 2019 for my Windows workloads in...

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...

Peachtree Auto Backup Using Task Scheduler with images

Before creating an auto backup with Task Scheduler.  1. In PEACHTREE Application, Create an initial Auto Backup. Click Browse to locate folder "SAVE BACKUP TO:" Enter "USERNAME" and "PASSWORD" Follow everything on the image Click "Save As" to your backup folder Then "Run Backup" and copy the PROGRAM SCRIPT  at the bottom to be used later, see image below. Search and open "TASK SCHEDULER" 1. Click the tab "GENERAL" Followup the setup on the picture. 2. Click the tab "TRIGGERS". Then Click the New button to create a schedule. After setting up the schedule. Click OK. 3. To Create new Actions, click the tab "ACTIONS", click NEW then paste the PROGRAM/SCRIPT below. Then Click OK. 4. Next click the tab "CONDITIONS" and follow everything in the picture. 5. Click the tab "SETTING"  and follow everything in the picture.    6. Lastly right-click the folder "TASK SCHEDULER LIBRARY...