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
Open the Ubuntu Terminal, type this:
sudo chmod -R 777 /opt/lampp/htdocs
Now, go to the “etc” folder which is under the “lamp” (
Edit the httpd.conf by
and find this:
<Directory /> AllowOverride All Require all granted </Directory>
<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
Everything is ok. Click File > Save and Exit.
Run the “XAMPP” again by the terminal (if you run 64bit).
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