Re: php and suexec on debian

From: Yves Goergen (nospam.list_at_unclassified.de)
Date: 07/31/03

  • Next message: davis: "second try at voodoo v and hardware rendering"
    To: <debian-user@lists.debian.org>
    Date: Thu, 31 Jul 2003 14:53:43 +0200
    
    

    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

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: davis: "second try at voodoo v and hardware rendering"

    Relevant Pages

    • php and suexec on debian
      ... I'm trying tu use php in cgi mode with suexec. ... so I could specify whichever path I want for docroot and userdir. ...
      (Debian-User)
    • Apache suEXEC help - solved!
      ... That said, docroot (for suEXEC) does ... can do whatever they want with them obviously, but the symlink itself...?) ... cgi-bin folder into account when calculating quota usage? ...
      (Fedora)
    • How to configure Apache21 port with suexec enabled and suexec_docroot change
      ... AUTH AUTHN AUTHZ DAV EXPERIMENTAL LDAP MISC PROXY SSL SUEXEC THREADS ... Does anyone know the syntax when installing this port that will enable ... any syntax examples in the port to even try and change the docroot. ...
      (freebsd-questions)
    • Re: PHP code not displaying in IE 6
      ... Serenade is an alias in Apache's conf file for a directory under the docroot ... which is the php page I was having problems with initially. ... > What does Apache think your docroot is? ...
      (comp.lang.php)