Understanding htdocs permission

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Understanding htdocs permission

Postby merlin38 » 05. February 2010 16:37

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
merlin38
 
Posts: 6
Joined: 05. February 2010 15:37

Re: Understanding htdocs permission

Postby regisb50 » 08. March 2010 15:28

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?
regisb50
 
Posts: 2
Joined: 08. March 2010 14:47


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests