How to install XAMPP in Ubuntu 18.10 and How it works?

How to install XAMPP in Ubuntu 18.10 and How it works? 1

Well well well. After a few years, I come back to Ubuntu for personal use. I am very much impressed by Ubuntu 18.10 GUI. It’s awesome and beautiful. I didn’t feel I am out of Windows or Mac PC. Ubuntu OS allows me to continue work in my daily task here. After installing Ubuntu 18.10 I am very much worried about how to work on WordPress because I don’t like too much coding to ready lamp stack or make virtualhost by Terminal. 

So, the XAMPP is the best solution for me. But after running XAMPP via terminal and installing WordPress I can’t upload themes, plugins or update my WordPress old version to the latest (file permission error/CHOWN issue). I don’t like to add this code every time “define(‘FS_METHOD’,’direct’);” to the wp-config.php file.

Here is the trick to follow:

So, I have doing this, and, right now didn’t face any issue. 

Open the Ubuntu Terminal, type this: sudo su to make sure you are in root mode

sudo chmod -R 777 /opt/lampp/htdocs

Now, go to the “etc” folder which is under the “lamp” (xampp) folder. type this:

cd /opt/lampp/etc/

Edit the httpd.conf by gedit text software:

gedit httpd.conf

and find this:

<Directory />
    AllowOverride All
    Require all granted
</Directory>

Change to:

<Directory "/opt/lampp/htdocs">
 Options Indexes FollowSymLinks ExecCGI Includes
 AllowOverride All
 Require all granted
</Directory>

Now find the user and group text and change to:

User murshid
Group murshid

Change “murshid” to your username and don’t forget to add the group name as it is.

Everything is ok. Click File > Save and Exit.

Run the “XAMPP” again by the terminal (if you run 64bit).

./manager-linux-x64.run

After Starting the XAMPP from “Manage Servers” tab, you can close the Terminal. Apache, MySQL and, phpMyAdmin running until reboot the pc.

I hope, this small trick help you.

Have a nice coding <3

Author: Murshid Alam

Organizer of Barishal WordPress Meetup, WordPress Enthusiastic and, Open Source Lover. Over the last few years, I learned web programming and worked with them locally. I also assist in designing, developing and testing websites too! Before coming to web programming I was mostly involved with Electric Media(Channel i), Newspaper (Priyo, Bhorer Kagoj) and volunteering activities (including NGOs). I love to contribute to the WordPress Community. I am always happy to meet new peoples in the WordPress community and see how I can help them achieve their goals. When I am not online and WordPress, I love to play football, travel, riding the bike and attend Meetup/WordCamps! If you’d like, you can help me to attend WordCamps around the World.

Leave a Reply