Page 1 of 1

Correct File User and Directory Permissions after Install

PostPosted: 09. April 2016 03:15
by junaidahmed
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.

Re: Correct File User and Directory Permissions after Instal

PostPosted: 09. April 2016 10:34
by Nobbie
junaidahmed wrote:I have found the solution to chmod 777 but that's not safe.


Why not? Who else is working on your PC?

Re: Correct File User and Directory Permissions after Instal

PostPosted: 09. April 2016 21:28
by junaidahmed
No one. But I keep reading everywhere that you shouldn't do that even on localserver. Also it is a workaround not a solution.