1 |
On Wed, 2006-09-20 at 22:34 -0500, Michael Sullivan wrote: |
2 |
> Has anyone out there had any success with www-apache/mod_suphp? If so, |
3 |
> I could use some help. I've never been able to make it execute .php |
4 |
> files that aren't in /var/www/localhost/htdocs, and I can't even figure |
5 |
> out why it allows those, unless it's because /var/www/localhost/htdocs |
6 |
> is my DEFAULT_VHOST. I looked in |
7 |
> the /etc/apache2/vhosts.d/00_default_vhost.conf file and can see no |
8 |
> suphp stuff, nor even any references to any. My /etc/suphp.conf is |
9 |
> pretty simple: |
10 |
> |
11 |
> camille ~ # cat /etc/suphp.conf |
12 |
> [global] |
13 |
> ;Path to logfile |
14 |
> logfile=/var/log/apache2/suphp_log |
15 |
> |
16 |
> ;Loglevel |
17 |
> loglevel=info |
18 |
> |
19 |
> ;User Apache is running as |
20 |
> webserver_user=apache |
21 |
> |
22 |
> ;Path all scripts have to be in |
23 |
> docroot=/ |
24 |
> |
25 |
> ; Security options |
26 |
> allow_file_group_writeable=false |
27 |
> allow_file_others_writeable=false |
28 |
> allow_directory_group_writeable=false |
29 |
> allow_directory_others_writeable=false |
30 |
> |
31 |
> ;Check wheter script is within DOCUMENT_ROOT |
32 |
> check_vhost_docroot=true |
33 |
> |
34 |
> ;Send minor error messages to browser |
35 |
> errors_to_browser=true |
36 |
> |
37 |
> ;PATH environment variable |
38 |
> env_path=/bin:/usr/bin |
39 |
> |
40 |
> ;Umask to set, specify in octal notation |
41 |
> umask=0077 |
42 |
> |
43 |
> ; Minimum UID |
44 |
> min_uid=81 |
45 |
> |
46 |
> ; Minimum GID |
47 |
> min_gid=81 |
48 |
> |
49 |
> |
50 |
> [handlers] |
51 |
> ;Handler for php-scripts |
52 |
> x-httpd-php=php:/usr/lib/php5/bin/php-cgi |
53 |
> x-httpd-php5=php:/usr/lib/php5/bin/php-cgi |
54 |
> x-httpd-php4=php:/usr/lib/php4/bin/php-cgi |
55 |
> x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi |
56 |
> |
57 |
> ;Handler for CGI-scripts |
58 |
> x-suphp-cgi=execute:!self |
59 |
> |
60 |
> What am I doing wrong here? I really need this, or if not this, a good |
61 |
> workaround. I work for the Director of Music at our local college. |
62 |
> Since February I've been working on a web interface for next years Music |
63 |
> Festivals. I wrote it in PHP because it's the scripting language that I |
64 |
> know best. The web interface is finished except for one detail; it |
65 |
> needs to be able to email log reports of actions done by directors |
66 |
> registered with the script. The problem is that I want the user |
67 |
> 'festival@××××××××××××.com' to mail out the log reports, but I can't |
68 |
> have that with the current setup because the script will execute under |
69 |
> user 'apache' and I don't really want apache in the mail group. Can |
70 |
> anyone help me out here? |
71 |
|
72 |
A little more information. I have a file named test.php. It's a simple |
73 |
print statement. I have a copy in /var/www/localhost/htdocs/ and |
74 |
another one in /home/test/public_html/ . The one |
75 |
at /var/www/localhost/htdocs/test.php works fine, but when I go to |
76 |
http://localhost/~test/test.php , I get this: |
77 |
|
78 |
Internal Server Error |
79 |
File "/home/test/public_html/test.php" is not in document root of Vhost |
80 |
"/var/www/localhost/htdocs" |
81 |
|
82 |
|
83 |
________________________________________________________________________ |
84 |
suPHP 0.6.1 |
85 |
|
86 |
-- |
87 |
gentoo-user@g.o mailing list |