Hi All,

I've been digging around in the list archives looking at similar  
problems to this but I am not having any luck solving this problem. I  
seem to have everything installed okay to where apache runs and  
doesn't complain but php scripts don't execute; I get raw code in the  
browser. So I'm assuming my handler is not mapped right or maybe pad  
permissions somewhere.

I am totally stumped on this so any help or hints of what else I can  
look at would be much appreciated.

Here's the scoop.


suphp.log is empty and the domlogs show regualr requests. Here's a  
domlog sample

myvirtualdomain.com 65.114.224.250 - - [13/May/2009:11:26:11 -0600]  
"GET /index.php HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; U; Intel  
Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10"


/var/log/httpd/error_log does not report any problems from requests or  
during runtime but it shows the following on a restart.

[Wed May 13 13:36:01 2009] [notice] SELinux policy enabled; httpd  
running as context user_u:system_r:httpd_t:s0
[Wed May 13 13:36:01 2009] [notice] suEXEC mechanism enabled  
(wrapper: /usr/sbin/suexec)
[Wed May 13 13:36:01 2009] [notice] Digest: generating secret for  
digest authentication ...
[Wed May 13 13:36:01 2009] [notice] Digest: done
[Wed May 13 13:36:01 2009] [notice] mod_python: Creating 4 session  
mutexes based on 256 max processes and 0 max threads.
[Wed May 13 13:36:01 2009] [notice] Apache configured -- resuming  
normal operations



Server Info:

CentOS 5.3
Linux silk1 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009  
x86_64 x86_64 x86_64 GNU/Linux

Php 5
5.1.6-23.2.el5_3

Apache 2
2.2.3-22.el5.centos

I have compiled from source and installed suphp-0.7.1. I have the  
following in my conf files.

/etc/httpd/confd/php.conf

LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
<Directory />
     suPHP_AddHandler application/x-httpd-php5
</Directory>
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php

I have a user and group silk with uid/gid 505

My user site configuration is as follows.

<VirtualHost *:80>
   ServerName myvirtualdomain.com
   ServerAlias www. myvirtualdomain.com
   DocumentRoot /home/silk/web
   CustomLog /var/log/httpd/log-myvirtualdomain.com vhost
    <IfModule mod_suphp.c>
      suPHP_UserGroup silk silk
    </IfModule>
</VirtualHost>

and my suphp.conf is:

[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=debug

;User Apache is running as
webserver_user=wwwrun

;Path all scripts have to be in
docroot=/var/www:${HOME}/www

;Path to chroot() to before executing script
;chroot=/mychroot

; 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=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0077

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100


[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"



Thanks in advance for any advice.

Thanks

Brian




----
This e-mail is intended only for the person or persons to whom it is
addressed and may contain information that is privileged, confidential,
or otherwise protected from disclosure. If you have received this e-mail
in error, please immediately notify us by calling the Integer Group Help
Desk at +01.303.393.3030. Dissemination, distribution, or copying of this
e-mail or the information herein by anyone other than the intended
recipient or an employee or agent responsible for delivering the message
to the intended recipient is prohibited.

The Integer Group
+01. 303. 393. 3000


_______________________________________________
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp

Reply via email to