Hello, the old good "terminate called after throwing an instance of 'suPHP::LookupException'" problem is back.
Some month ago I have had a problem and now I have it again. The old problem description and at the moment I have almost the same situation. Now I have OS Fedora Core 10 and php: [20:08:55 r...@h11 lepinguabi.ee]# php-cgi -v PHP 5.2.6 (cgi-fcgi) (built: Sep 13 2008 11:12:16) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies --- Hello, I found a problem. The problem was in directory: /home/virtual/tuuleke.ee/vhosts/ permissions. In old system (Fedora Core 7 and mod_suphp-0.6.3-1.fc9.x86_64) it works fine fith permission: [12:54:56 root at h11 ~]# ls -lah /var/www/tuuleke.ee/ total 28K drwxrwxr-x 4 11933 10386 4.0K 2008-08-25 20:07 . drwxr-xr-x 280 root root 12K 2009-03-02 15:47 .. drwxrwxr-x 2 11933 10386 4.0K 2008-08-25 20:07 users drwxrwxr-x 3 11933 10386 4.0K 2008-09-03 21:21 vhosts But not anymore in Fedora Core 9 and mod_suphp-0.6.3-3.fc10.x86_64 - I tried even Fedora Core 10 package :) In current sustem it works with directory permission: [12:57:06 root at h11 tuuleke.ee]# ls -lah total 40K drwxrwxr-x 4 root root 4.0K 2008-08-25 20:07 . drwxr-xr-x 277 root root 12K 2008-07-14 22:37 .. drwxrwxr-x 2 11933 10386 4.0K 2008-08-25 20:07 users drwxrwxr-x 3 root root 4.0K 2008-09-03 21:21 vhosts Ok that is not a problem but can someone describe what is changed? --- Margus "Margusja" Roo +3725148780 skype: margusja msn: margusja at kodila.ee homepage: http://margusja.pri.ee Margusja wrote: > Hello. > > I still use mod_suphp-0.6.2-1.fc7 on Fedora Core 7. All is fine. > > Set up new test server and moved all data to new server. Upgraded Fedora > Core 7 to Fedora Core 9 and got mod_suphp-0.6.3-1.fc9.x86_64. > > One example virtualhost config. > <VirtualHost *:80> > ServerName www.tuuleke.ee > ServerAlias tuuleke.ee > > DocumentRoot /home/virtual/tuuleke.ee/vhosts/www/htdocs > CustomLog > /home/virtual/tuuleke.ee/vhosts/www/logs/www.tuuleke.ee.access combined > ErrorLog > /home/virtual/tuuleke.ee/vhosts/www/logs/www.tuuleke.ee.errors > <Directory /home/virtual/tuuleke.ee/vhosts/www/htdocs> > Options MultiViews FollowSymLinks > AllowOverride FileInfo AuthConfig Limit Indexes > </Directory> > Alias /stats /home/www/logs/stats > > ScriptAlias /cgi-bin/ /home/virtual/tuuleke.ee/vhosts/www/cgi-bin/ > <Directory /home/virtual/tuuleke.ee/vhosts/www/cgi-bin> > Options ExecCGI > AllowOverride FileInfo AuthConfig Limit Indexes > </Directory> > > > <Directory /home/virtual/tuuleke.ee/vhosts/www/cgi-bin> > Options ExecCGI > </Directory> > > > > RewriteEngine On > RewriteRule ^/~([^./]+)(.*) > /ispman/domains/tuuleke.ee/users/$1_tuuleke_ee/public_html$2 > > suPHP_Engine on > suPHP_AddHandler php5-script > > CBandSpeed 128 3 1 > CBandRemoteSpeed 20kb/s 1 1 > CBandScoreboard /home/virtual/tuuleke.ee/vhosts/www/scoreboard > CBandLimit 100M > CBandPeriod 4W > > </VirtualHost> > > /etc/suphp.conf: > > I > /etc/suphp.conf > Row 1 Col 1 10:58 Ctrl-K H for help > [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=false > > ;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=500 > > ; Minimum GID > min_gid=500 > > ; Use correct permissions for mod_userdir sites > handle_userdir=true > > [handlers] > ;Handler for php-scripts > php5-script=php:/usr/bin/php-cgi > > ;Handler for CGI-scripts > x-suphp-cgi=execute:!self > > /etc/httpd/conf.d/mod_suphp.conf: > # This is the Apache server configuration file providing suPHP support.. > # It contains the configuration directives to instruct the server how to > # serve php pages while switching to the user context before rendering. > > LoadModule suphp_module modules/mod_suphp.so > > > ### Uncomment to activate mod_suphp > #suPHP_AddHandler php5-script > > > # This option tells mod_suphp if a PHP-script requested on this server (or > # VirtualHost) should be run with the PHP-interpreter or returned to the > # browser "as it is". > suPHP_Engine on > > > # This option tells mod_suphp which path to pass on to the PHP-interpreter > # (by setting the PHPRC environment variable). > # Do *NOT* refer to a file but to the directory the file resists in. > # > # E.g.: If you want to use "/path/to/server/config/php.ini", use > "suPHP_Config > # /path/to/server/config". > # > # If you don't use this option, PHP will use its compiled in default path. > #suPHP_ConfigPath /etc > > > And the problem is some virtualhosts are working fine and are using > suphp and some are not working and are giving error in apache error log: > [Fri Feb 27 22:58:08 2009] [error] [client 84.50.17.113] terminate > called after throwing an instance of 'suPHP::LookupException' > [Fri Feb 27 22:58:08 2009] [error] [client 84.50.17.113] Premature end > of script headers: index.php > > file/dir rights: > [23:03:23 root at h11 htdocs]# pwd > /var/www/tuuleke.ee/vhosts/www/htdocs - (virtual host document root) > -rw-r--r-- 1 11947 10386 397 2008-09-03 21:53 index.php > > totally the same conf works on FC7 and suphp-0.6.2. > > > -- Best regards, Margus "Margusja" Roo +3725148780 skype: margusja msn: margu...@kodila.ee homepage: http://margusja.pri.ee _______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp