Hi, i got a problem on a fedora core 7 setup running latest stable ispconfig using the suphp setup. trying to install oscommerce i get an 500 error - Internal Server Error! looking at the log files of the site i see the following error message [Tue May 27 07:44:24 2008] [error] [client 86.88.206.172] SoftException in Application.cpp:499: Directory /home/www is not owned by web65_info [Tue May 27 07:44:24 2008] [error] [client] Premature end of script headers: index.php Ive choosen to use /home/www for the sites, am i missing something ? best regards, Hennie
suphp error message ls -la /home/www drwxr-xr-x 57 apache apache 4096 2008-05-27 07:29 . drwxr-xr-x 7 root root 4096 2008-02-11 09:04 .. drwxr-xr-x 8 web65_info web65 4096 2008-05-28 04:00 web65 lrwxrwxrwx 1 apache web65 15 2008-05-27 07:29 www.DOMAINNAME.nl -> /home/www/web65 /etc/suphp.conf [global] ;Path to logfile logfile=/var/log/suphp.log ;Loglevel loglevel=info ;User Apache is running as webserver_user=apache ;Path all scripts have to be in docroot=/ ;Path to chroot() to before executing script ;chroot=/mychroot ; Security options allow_file_group_writeable=true allow_file_others_writeable=false allow_directory_group_writeable=true 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:/home/admispconfig/ispconfig/tools/suphp/usr/bin/php-wrapper ;Handler for CGI-scripts x-suphp-cgi=execute:!self
What's in /home/admispconfig/ispconfig/tools/suphp/usr/bin/php-wrapper? Is PHP Safe Mode enabled or disabled?
suphp error message Hi, #!/bin/sh PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec" BASEDIR=`dirname ${DOCUMENT_ROOT}` TMPDIR=${BASEDIR}/phptmp SESSDIR=${TMPDIR} if [ X"${php_safe_mode}" != X"On" ]; then SAFE_MODE="Off" else SAFE_MODE="On" fi exec php-cgi -d open_basedir=${BASEDIR} -d upload_tmp_dir=${TMPDIR} -d session.save_path=${SESSDIR} -d safe_mode=${SAFE_MODE}
suphp error message Problem stays after setting /etc/php.ini safe_mode to off SoftException in Application.cpp:499: Directory /home/www is not owned by web65_info
Did you install suPHP as shown here? http://www.howtoforge.com/install-s...tions-for-use-with-ispconfig-2.2.20-and-above
Thank you for verifying this. In my opinion, it makes suphp useless if it complains when a upper folder in the folder hierarchy is not owned by the same user. This would mean that with suphp 0.6.3 all websites folders have to be in / and not in e.g. /var/www