Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th October 2005, 21:35
BenDaDon BenDaDon is offline
Junior Member
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Php with Apache rights, not vhost rights

Hello guys,
i've a big problem:
All my PhpScripts are running under Apache2 Rights, like wwwrun.
So Typo3 (the php script) creates files under the username wwwrun.
i would like to have the same username and -group like the virtualhost.
I think Suexec doesnt work correct.
What to do?
suexec2 -V:
Code:
-D AP_DOC_ROOT="/srv/www"
 -D AP_GID_MIN=96
 -D AP_HTTPD_USER="wwwrun"
 -D AP_LOG_EXEC="/var/log/apache2/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=96
 -D AP_USERDIR_SUFFIX="public_html"
That's not really the DOC ROOT which i use...!
But to change this, i have to compile it ( man suexec2 ).
So whats the solution ?
Guys i count on you....
Reply With Quote
Sponsored Links
  #2  
Old 7th October 2005, 04:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

suExec is only for CGI scripts (e.g. Perl scripts). If you run PHP as CGI (and not as an Apache module), then suExec is for you. But mostly PHP runs as an Apache module, so you might have a look at suPHP (http://www.suphp.org/Home.html).
__________________
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 8th January 2006, 13:03
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

You are the best! I love you ;-)

P.S. For Debian user:

apt-get install libapache2-mod-suphp (for apache)
or
apt-get install libapache-mod-suphp (for apache2)
Reply With Quote
  #4  
Old 8th January 2006, 19:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by ddelbia
P.S. For Debian user:

apt-get install libapache2-mod-suphp (for apache)
or
apt-get install libapache-mod-suphp (for apache2)
I think it's the other way round:

Code:
apt-get install libapache2-mod-suphp
(for Apache2)
or
Code:
apt-get install libapache-mod-suphp
(for Apache)
__________________
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
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
[error] an unkown filter was not added: PHP Arien Installation/Configuration 12 7th October 2006 15:17
PHP not working jefash General 10 28th May 2006 09:48
Support for apache vhost transfer limits till Feature Requests 2 25th September 2005 01:42
Multiple domains jysse Installation/Configuration 2 10th August 2005 12:22
Apache + PHP lola Server Operation 1 25th April 2005 14:41


All times are GMT +2. The time now is 20:48.


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