#1  
Old 27th April 2006, 06:12
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default apache user

I hope I am not asking something already covered, but I couldn't find much about this.

Fedorea core 3, apache 2.0.53

httpd runs under user apache group apache

When I use PHP programs to create directories or files they are owned by apache.apache. Later I can't write to those directories.

An exapmle, I create a directory in an images file, it is owned by apache.apache. When I try to write a file to that directory with the same program, it won't go until I chown that directory to the web owner.web group.

suExec is off, my webs are created in /home/www

What do I need to do to change this behavior so that the PHP programs create directories and files owned by the web user.web group?

Thanks

Richard
Reply With Quote
Sponsored Links
  #2  
Old 27th April 2006, 09:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,170
Thanks: 829
Thanked 5,412 Times in 4,255 Posts
Default

Please have a look here:

http://www.howtoforge.com/forums/showthread.php?t=2831
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th April 2006, 10:22
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default

Thank you Till.

It looks like suExec is my solution as all the scripts we would want to run are uploaded with FTP and owned by each site user and group.

Will it work simply by turning it "on" with the checkbox in ispConfig? I read somwehere that the webs would have to be in /var/www for suExec to work, but we already have live sites in /home/www. If so, can this be worked around by recompiling suExec to use /home/www instead of /var/www? What should be the USERDIR suffix, if any?

Would this affect later ispConfig updates or apg-get updates?

Thanks again!

# /usr/sbin/suexec -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"
Reply With Quote
  #4  
Old 27th April 2006, 12:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by rbartz
I read somwehere that the webs would have to be in /var/www for suExec to work, but we already have live sites in /home/www. If so, can this be worked around by recompiling suExec to use /home/www instead of /var/www?
Yes, you must recompile suExec.

Quote:
Originally Posted by rbartz
Would this affect later ispConfig updates or apg-get updates?
It does not affect ISPConfig updates, but might cause problems if suExec is to be updated...
__________________
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
  #5  
Old 27th April 2006, 12:59
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
 
Default

Thank you Falko and Till, you guys are great!
Reply With Quote
Reply

Bookmarks

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
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Apache Virtual Hosting and SSH madcat87 Server Operation 7 31st August 2010 12:20
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 02:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
PHP/MySQL/Apache2/ISPConfig configuration issues? senzapaura General 21 25th December 2005 14:01


All times are GMT +2. The time now is 13:52.


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