HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Right way to set up Apache's file permissions (http://www.howtoforge.com/forums/showthread.php?t=27131)

marpada 25th September 2008 17:32

Right way to set up Apache's file permissions
 
Hi,

I've always wondered what is the right way to set up /var/www owner and group permissions for Apache. Maybe you guys could shine some light :)
________
Gsx250Fx
________
ROLL BLUNTS

falko 26th September 2008 16:46

Which distribution are you using? How did you install Apache?
What are you trying to do? Does the directory need special permissions/ownerships?

marpada 26th September 2008 16:57

I usually install PHP applications (Joomla, Drupal, php forums) in dedicated server using different distirbutions , but mainly Debian an CentOS. I don't know if I shoud chown the files/dirs to root, to apache's user. Sometime I have to give special privileges to all users for they to upload files, that's not my doubt.
________
TRICHOMES
________
WEED

falko 27th September 2008 13:36

If you upload files to that directory with FTP, you should chown it to the FTP user. If Apache needs to write to this directory, you should chown it to the Apache user. If you do none of these, then it doesn't matter as long as the Apache user can read from the directory.

marpada 30th September 2008 03:57

So there's nothing wrong if I let root own the files? I mean, isn't a security flaw?
________
Bdsm leather
________
THE CIGAR BOSS

falko 30th September 2008 17:24

No, why?...

marpada 30th September 2008 21:08

Don't know, just feeling paranoid ;)

Thank you very much for your wisdom, Falko.
________
Voyeur Bikini
________
Ship Sale


All times are GMT +2. The time now is 10:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.