Bert a écrit :
> Here is my php -v output:
> --------------
> www:~ # /usr/bin/php5 -v
> PHP 5.1.2 with Suhosin-Patch 0.9.6 (cli) (built: Dec 12 2007 02:15:51) 
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
>     with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by
> eAccelerator
> --------------
> ciao
> Bert
> 
> On Sat, 26 Jan 2008 19:59:57 -0800, Jeremy Chadwick
> <[EMAIL PROTECTED]> wrote:
>> Provide the output of "/usr/bin/php5 -v" please.
>>
>> --
>> | Jeremy Chadwick                                    jdc at parodius.com
> |
>> | Parodius Networking                           http://www.parodius.com/
> |
>> | UNIX Systems Administrator                      Mountain View, CA, USA
> |
>> | Making life hard for others since 1977.                  PGP: 4BD6C0CB
> |
>> On Sun, Jan 27, 2008 at 02:32:41AM +0100, Bert wrote:
>>> Hi there,
>>>
>>> I have a problem with a suPHP-Installation.
>>> When calling a php-script I get an:
>>>
>>> 500 Internal Server Error
>>>
>>> in the error.log of Apache I get the following error:
>>>
>>> Premature end of script headers: test.suphp
>>>
>>> [info] Executing "/srv/www/vhosts/xxxxxxx/httpdocs/test.suphp"
>> as
>>> UID 10007, GID 2524
>>>
>>> UID and GID are the correct. And I can't find any other errors.
>>> Here is part of my vhost-config
>>>
>>>     php_admin_flag engine on
>>>     suPHP_Engine On
>>>     suPHP_ConfigPath "/srv/www/vhosts/xxxxxxx/httpdocs"
>>>     AddHandler x-httpd-php .suphp
>>>     suPHP_AddHandler x-httpd-php
>>>
>>>
>>> and here is my suphp.conf
>>> ----------
>>> [global]
>>> logfile=/var/log/suphp.log
>>> loglevel=info
>>> webserver_user=wwwrun
>>> docroot=/
>>> allow_file_group_writeable=false
>>> allow_file_others_writeable=false
>>> allow_directory_group_writeable=false
>>> allow_directory_others_writeable=false
>>> check_vhost_docroot=true
>>> errors_to_browser=true
>>> env_path=/bin:/usr/bin:/usr/local/bin
>>> umask=0022
>>> min_uid=100
>>> min_gid=100
>>> [handlers]
>>> x-httpd-php=php:/usr/bin/php5
>>> x-suphp-cgi=execute:!self
>>> ----------
>>>
>>> My System is SuSE 10.1
>>> Does anyone has any idea whereelse to look.
>>>
>>> ciao
>>> Bert
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> suPHP mailing list
>>> [email protected]
>>> http://lists.marsching.biz/mailman/listinfo/suphp
> 
> 
> _______________________________________________
> suPHP mailing list
> [email protected]
> http://lists.marsching.biz/mailman/listinfo/suphp
> 
> 
> 
Hello

You must use the cgi version of php5 in your suphp.conf :

[handlers]
x-httpd-php=php:/usr/bin/php5-cgi

And i am not sure eaccelerator can be used in conjonction with suphp...

Patrick



_______________________________________________
suPHP mailing list
[email protected]
http://lists.marsching.biz/mailman/listinfo/suphp

Reply via email to