Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th September 2008, 17:32
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default 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

Last edited by marpada; 13th May 2011 at 01:41.
Reply With Quote
Sponsored Links
  #2  
Old 26th September 2008, 16:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Which distribution are you using? How did you install Apache?
What are you trying to do? Does the directory need special permissions/ownerships?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 26th September 2008, 16:57
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default

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

Last edited by marpada; 13th May 2011 at 01:43.
Reply With Quote
  #4  
Old 27th September 2008, 13:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
marpada (1st October 2008)
  #5  
Old 30th September 2008, 03:57
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default

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

Last edited by marpada; 13th May 2011 at 01:45.
Reply With Quote
  #6  
Old 30th September 2008, 17:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

No, why?...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th September 2008, 21:08
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
 
Default

Don't know, just feeling paranoid

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

Last edited by marpada; 13th May 2011 at 01:45.
Reply With Quote
Reply

Bookmarks

Tags
apache, permission

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transaction error Perfect FC6 setup ACDII HOWTO-Related Questions 1 6th July 2007 14:56
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
[ISPconfig Install] Cannot allocate memory Cordoban Installation/Configuration 3 25th August 2006 13:20
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
BIND broke adamluz Installation/Configuration 4 2nd June 2006 21:31


All times are GMT +2. The time now is 18:55.


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