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
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
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
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.
Recent comments
1 day 5 hours ago
1 day 5 hours ago
1 day 10 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 6 hours ago
2 days 10 hours ago
2 days 11 hours ago