HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Php with Apache rights, not vhost rights (http://www.howtoforge.com/forums/showthread.php?t=767)

BenDaDon 6th October 2005 20:35

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....

falko 7th October 2005 03:29

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).

ddelbia 8th January 2006 12:03

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)

falko 8th January 2006 18:24

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: :D

Code:

apt-get install libapache2-mod-suphp
(for Apache2)
or
Code:

apt-get install libapache-mod-suphp
(for Apache)


All times are GMT +2. The time now is 02:50.

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