How To Install XAMPP On Ubuntu: Best Explained 007EH

Cyber Security Tools List

How To Install XAMPP On Ubuntu – This simple tutorial explains how to run WordPress on XAMPP (Apache, MariaDB & PHP) locally on Ubuntu GNU/Linux 64 bit. You can apply this tutorial for Mint, elementary, BlankOn, or any other GNU/Linux distro. However, if you have 32 bit computer, you cannot use XAMPP. The most important step here is number 4 which is doing chown over ‘WordPress‘ directory for Apache’s user account.

How To Install XAMPP On Ubuntu Why XAMPP?

Because it’s instant. If you need to merely learning PHP/MySQL locally, XAMPP is very suitable. However, XAMPP is not the only solution as you can install Apache & MariaBD manually.

How To Install XAMPP On Ubuntu Download WordPress Software

The software, WordPress, is actually a collection of PHP source code that integrated to form a website management system (WMS). You should not confuse WordPress (the software) with (the web service by Automatics). You can download WordPress as a package (either on ZIP or TAR) from WordPress Software Project website At the time I write this article (June 22nd 2017) it reached version 4.8.

1. Install XAMPP

Follow this XAMPP Installation Course. Please be aware this is only for 64bit computers.

2. Extract WordPress Package

Place the WordPress package on your $HOME. Right-click > extract it.

This should give you a ‘wordpress’ named folder there.

3. Move WordPress Directory

Open your Terminal and perform this command:

sudo mv wordpress /opt/lampp/htdocs/ 

Now check the target directory and you should find /opt/lampp/htdocs/wordpress.

4. Change Directory Ownership

The most important thing now is changing ownership of the whole ‘wordpress’ directory to be owned by the user of XAMPP’s web server.

So the first thing is to know the username of the web server. Run this command:

ps aux | grep httpd

and you should see at the most left column the username “daemon“. This is the username your XAMPP used to run Apache Web Server (the /opt/lampp/bin/httpd).

Finally, do chown the ‘wordpress’ directory recursively so it owned by ‘daemon‘ username:

sudo chown -R daemon /opt/lampp/htdocs/wordpress/

5. Set XAMPP Security

Before going to local WordPress installation, set your phpMyAdmin and MySQL/MariaDB root passwords. For example, pma password=”root” and MySQL password=”root”. Run this command and do it:

sudo /opt/lampp/lampp security

6. Create Database

Now, close Terminal and you can head to browser by typing http://localhost/phpmyadmin. Login with the password you’ve set by yourself at Step 5. Go to database page and create a new database with the name ‘wordpress’.

7. Run WordPress Installation

The last step: now visit the address http://localhost/wordpress > go forward > fill the blanks with Database=”wordpress”Username=”root”Password=”root” just as examples you’ve followed before. See picture below.

When it works (because you’ve already set chown wordpress/ folder) you’ll fill the website info as you wish. Determine username and password as you wish.

8. Login to WordPress

Once finished, now visit the address http://localhost/wordpress. You should see the home page of the WordPress site. To manage it, login to Dashboard at the address http://localhost/wordpress/wp-admin.

This is the Dashboard inside of WordPress WMS:

How To Install XAMPP On Ubuntu FAQ

How do I start and install XAMPP?

Installing XAMPP

Step 1: Download.
Step 2: Run .exe file.
Step 3: Deactivate any antivirus software.
Step 4: Deactivate UAC.
Step 5: Start the setup wizard.
Step 6: Choose software components.
Step 7: Choose the installation directory.
Step 8: Start the installation process.

How do you check XAMPP is installed or not in Ubuntu?

How do you check XAMPP is installed or not in Ubuntu?

Open the XAMPP control panel and start the apache module.
Open your browser and type localhost/Test/test. php in the URL tab. If your browser prints ‘XAMPP Server runs successfully’, it means XAMPP is successfully installed and correctly configured.

How do I run XAMPP on Ubuntu?

Create a Shortcut to Start XAMPP in Ubuntu

Right-click on the Ubuntu desktop and select “Create Launcher.”
Select “Application in Terminal” for the Type.
Enter “Start XAMPP” for the Name (or enter whatever you want to call your shortcut).
Enter “ sudo /opt/lampp/lampp start ” into the Command field.
Click OK.

Can we install XAMPP in ubuntu?

XAMPP is a software stack that can run on Ubuntu Linux and make your life a little easier when it comes to web hosting. XAMPP stands for cross-platform (X), Apache (A), MariaDB (M), PHP (P), and Perl (P).

How to install XAMPP on Ubuntu Linux.
Category Requirements, Conventions or Software Version Used
System – Ubuntu Linux

Software – XAMPP

Related Articles