Hi I have just installed XAMPP on linux.
It installed in /opt/lampp directory.
I created a new website under /opt/lampp/htdocs/newwebsite
Copy pasted WordPress files there. Installed WordPress.
I have a very common problem. When I try to upload images to WordPress site I get an error. Apparently, after the install server does not have permission to create folders.
I have found the solution to chmod 777 but that's not safe.
I have also tried:
$chown myusername:myusername /opt/lampp/htdocs
So what should I do to set proper file permissions after installation.