From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GQFa6-0006Zx-As for garchives@archives.gentoo.org; Thu, 21 Sep 2006 03:50:34 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8L3nEDb013203; Thu, 21 Sep 2006 03:49:14 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8L3i427020750 for ; Thu, 21 Sep 2006 03:44:05 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 741B26436D for ; Thu, 21 Sep 2006 03:44:04 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13005-06 for ; Thu, 21 Sep 2006 03:43:57 +0000 (UTC) Received: from bullet.espersunited.com (adsl-70-234-122-254.dsl.tul2ok.sbcglobal.net [70.234.122.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 337426413C for ; Thu, 21 Sep 2006 03:43:57 +0000 (UTC) Received: from camille.espersunited.com ([192.168.1.1]) by bullet.espersunited.com (8.13.7/8.13.4) with ESMTP id k8L3huEK014047 for ; Wed, 20 Sep 2006 22:43:56 -0500 Subject: [gentoo-user] Re: mod_suphp From: Michael Sullivan To: gentoo-user In-Reply-To: <1158809659.6004.16.camel@bullet.espersunited.com> References: <1158809659.6004.16.camel@bullet.espersunited.com> Content-Type: text/plain Date: Wed, 20 Sep 2006 22:43:55 -0500 Message-Id: <1158810235.5996.20.camel@bullet.espersunited.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.157 required=5.5 tests=[AWL=0.307, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.157 X-Spam-Level: X-Archives-Salt: bead5c3a-53c8-4e15-9e9e-d90f15496d29 X-Archives-Hash: 577d963f369192535602915c9447f7f1 On Wed, 2006-09-20 at 22:34 -0500, Michael Sullivan wrote: > Has anyone out there had any success with www-apache/mod_suphp? If so, > I could use some help. I've never been able to make it execute .php > files that aren't in /var/www/localhost/htdocs, and I can't even figure > out why it allows those, unless it's because /var/www/localhost/htdocs > is my DEFAULT_VHOST. I looked in > the /etc/apache2/vhosts.d/00_default_vhost.conf file and can see no > suphp stuff, nor even any references to any. My /etc/suphp.conf is > pretty simple: > > camille ~ # cat /etc/suphp.conf > [global] > ;Path to logfile > logfile=/var/log/apache2/suphp_log > > ;Loglevel > loglevel=info > > ;User Apache is running as > webserver_user=apache > > ;Path all scripts have to be in > docroot=/ > > ; Security options > allow_file_group_writeable=false > allow_file_others_writeable=false > allow_directory_group_writeable=false > allow_directory_others_writeable=false > > ;Check wheter script is within DOCUMENT_ROOT > check_vhost_docroot=true > > ;Send minor error messages to browser > errors_to_browser=true > > ;PATH environment variable > env_path=/bin:/usr/bin > > ;Umask to set, specify in octal notation > umask=0077 > > ; Minimum UID > min_uid=81 > > ; Minimum GID > min_gid=81 > > > [handlers] > ;Handler for php-scripts > x-httpd-php=php:/usr/lib/php5/bin/php-cgi > x-httpd-php5=php:/usr/lib/php5/bin/php-cgi > x-httpd-php4=php:/usr/lib/php4/bin/php-cgi > x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi > > ;Handler for CGI-scripts > x-suphp-cgi=execute:!self > > What am I doing wrong here? I really need this, or if not this, a good > workaround. I work for the Director of Music at our local college. > Since February I've been working on a web interface for next years Music > Festivals. I wrote it in PHP because it's the scripting language that I > know best. The web interface is finished except for one detail; it > needs to be able to email log reports of actions done by directors > registered with the script. The problem is that I want the user > 'festival@espersunited.com' to mail out the log reports, but I can't > have that with the current setup because the script will execute under > user 'apache' and I don't really want apache in the mail group. Can > anyone help me out here? A little more information. I have a file named test.php. It's a simple print statement. I have a copy in /var/www/localhost/htdocs/ and another one in /home/test/public_html/ . The one at /var/www/localhost/htdocs/test.php works fine, but when I go to http://localhost/~test/test.php , I get this: Internal Server Error File "/home/test/public_html/test.php" is not in document root of Vhost "/var/www/localhost/htdocs" ________________________________________________________________________ suPHP 0.6.1 -- gentoo-user@gentoo.org mailing list