totaltouch
Verified User
Hi there,
I am looking for support on this one. This night I planned an update on some of my DA boxes, all with different configs. I get stuck on 1 machine, which only gives "500 Internal Server Error", after a ./build versions
It runs SuPHP, which worked perfectly fine, before updating. I tried everything to get things resolved.. ./build all, ./build rewrite_configs, ./build suphp but it didn't work for me.
I guess my cliënts will kill me in a couple of hours
- Box runs on Centos 5.2
- /var/log/suphp.log gives no warnings
Permissions on php file I am checking. HTML file gets served fine.
Options.conf looks like:
/etc/httpd/conf/extra/httpd-suphp.conf
/usr/local/suphp/etc/suphp.conf
Parts of /etc/httpd/conf/httpd.conf
Can anyone shine a light on this?
Thanks in advance!!
I am looking for support on this one. This night I planned an update on some of my DA boxes, all with different configs. I get stuck on 1 machine, which only gives "500 Internal Server Error", after a ./build versions
It runs SuPHP, which worked perfectly fine, before updating. I tried everything to get things resolved.. ./build all, ./build rewrite_configs, ./build suphp but it didn't work for me.
I guess my cliënts will kill me in a couple of hours
- Box runs on Centos 5.2
- /var/log/suphp.log gives no warnings
Permissions on php file I am checking. HTML file gets served fine.
Code:
-rw-r--r-- 1 admin admin 608 Aug 27 2008 index.html
-rw-r--r-- 1 admin admin 20 Apr 11 03:03 info.php
Options.conf looks like:
Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=no
#Possible values - 4.1, 5.0 or 5.1
mysql=5.0
mysql_inst=no
mysql_backup=yes
#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2
#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no
#Mail options
exim=no
mail-header-patch=yes
dovecot=yes
#FTP options
proftpd=yes
#Jailed shell (beta)
jail=no
#CustomBuild options
autover=no
bold=yes
clean=yes
#Cron settings
cron=no
[email protected]
notifications=yes
updates=no
#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
cleanapache=no
fileserver=1
eximconf=no
custombuild=1.1
awstats=yes
webalizer=no
clean_old_webapps=yes
webapps_updates=yes
clean_old_tarballs=yes
da_autoupdate=no
/etc/httpd/conf/extra/httpd-suphp.conf
Code:
<IfModule mod_suphp.c>
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-php5 .inc .php .php3 .php4 .php5 .phtml
</FilesMatch>
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php5
</Location>
</IfModule>
/usr/local/suphp/etc/suphp.conf
Code:
[global]
;Path to logfile
logfile=/var/log/suphp.log
;Loglevel
loglevel=warn
;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
; Normally suPHP only displays the PHP binary in process lists (ps aux).
; Setting this option to 'true' will cause suPHP to display both the
; PHP binary and the script filename.
;full_php_process_display=true
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false
;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=0022
;Minimum UID
min_uid=100
;Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php5="php:/usr/local/php5/bin/php-cgi"
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
Parts of /etc/httpd/conf/httpd.conf
Code:
ServerRoot "/etc/httpd"
Listen 80
#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
Include /etc/httpd/conf/extra/httpd-phpmodules.conf
User apache
Group apache
ServerAdmin admin@localhost
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
</IfModule>
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>
# All suPHP directives
Include conf/extra/httpd-suphp.conf
# All the other includes needed by the custombuild script
Include conf/extra/httpd-includes.conf
Can anyone shine a light on this?
Thanks in advance!!