[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php and suexec on debian



maybe this doesn't help you with suexec, but i don't use php+suexec anymore. i switched to suphp (www.suphp.org), which runs as apache module (apache 1 only) and runs the php binary with a configurable uid/gid and php config file. that works fine, is easy to set up and does its job :)

-yves


----------
Original Message from Clement Hermann <clement.hermann@eolas.fr> at 31.07.2003 14:03:46:

> Hi,
> 
> I'm trying tu use php in cgi mode with suexec.
> 
> I had no problem with this setup previously, as I used to compile apache
> myself, so I could specify whichever path I want for docroot and userdir.
> 
> I used to specify --suexec-userdir=cgi-bin, and to put a php binary in a
> $HOME/cgi-bin directory for each user, and each virtualhost had the
> following configuration:
> 
> user foo
> group foo
> DocumentRoot <home>/www
> Servername blabla
> errorlog blabla
> customlog blabla combined
> AddType application/my-x-httpd-php .php
> Action  application/my-x-httpd-php /cgi-php/php
> ScriptAlias /cgi-php <home>/cgi-bin
> 
> I took a quick look on the debian/rule file of the apache source
> package, and saw that userdir was "public-html". docroot was /var/www,
> but as I intended to use the userdir, I did not bother.
> 
> So, I replaced cgi-bin by public_html, but the suexec log keeps telling
> me that php is outside the docroot. But when I use the userdir, I don't
> rely upon the docroot, Or do I ?
> 
> I Also tried to specify a directory inside the docroot (say,
> /var/www/foo_cgi-bin), but the I have no error with suexec, but php
> return a parse error on the binary (!).
> 
> I'd really appreciate if someone with a little experience with suexec on
> debian could tell me what I messed up.
> 
> Best regards,
> 
> PS: Sorry for debian-user-french readers who might have seen this mail
> in french before... ;)
> 
> -- 
> Clément Hermann --------------------|----------------------|
> Administrateur systèmes et réseaux  | +33 (0)4-76-44-50-50 |
> Business & Decision.Eolas           | http://www.eolas.fr ; |
> ------------------------------------|----------------------|
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: