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

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 fahim
Group fahim

Change “fahim” 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

Leave a Reply