Page 1 of 1

Understanding htdocs permission

PostPosted: 05. February 2010 16:37
by merlin38
I have to modify permission for htdocs/
I do chown -R me:me /opt/lampp/htdocs
and then chmod -R 777 /opt/lampp/htdocs

is it OK ? It seem to be unsafe to allow max right to every one ?

somewhere on the web i found this
sudo chown -R nobody:users /opt/lampp/htdocs
I don't understand this !!
You must start xampp as root ? sudo /opt/lampp/lampp start, so apache,mysql, and php are running as root. So how can they acces to files if the owner is nobody from the group users ??
Can someone explain me this ?

Thanks
PS sorry for my french accent ! :D

Re: Understanding htdocs permission

PostPosted: 08. March 2010 15:28
by regisb50
merlin38 wrote:I have to modify permission for htdocs/
I do chown -R me:me /opt/lampp/htdocs
and then chmod -R 777 /opt/lampp/htdocs


My question is why do you need to change access rights? Apache will serve pages fine with the default ownership of root.root, 755 directory permissions. Is your problem with FTP access?