Picon
Favicon

PHP 5.4.0 with suPHP ?

Greetings,

I use suPHP since more 2 years and i have never got any problem with it.
I had Apache last version (currently 2.2.22) and PHP 5.3.x last version 
(currently 5.3.9) with suPHP 0.7.1, any problem with this branch of PHP.

I have updated my PHP to 5.4.0 and now it's don't work, i have this error :

[Sat Mar 10 02:03:48 2012] [error] [client 127.0.0.1] malformed header 
from script. Bad header=<font color=ff0000><br />: index.php
[Sat Mar 10 02:04:17 2012] [error] [client 127.0.0.1] malformed header 
from script. Bad header=<font color=ff0000><br />: index.php
[Sat Mar 10 02:04:22 2012] [error] [client 127.0.0.1] malformed header 
from script. Bad header=<font color=ff0000><br />: index.php
[Sat Mar 10 02:07:13 2012] [error] [client 127.0.0.1] malformed header 
from script. Bad header=<font color=ff0000><br />: index.php
[Sat Mar 10 02:07:23 2012] [error] [client 127.0.0.1] malformed header 
from script. Bad header=<font color=ff0000><br />: index.php
[Sat Mar 10 02:08:35 2012] [error] [client 127.0.0.1] malformed header 
from script. Bad header=<font color=ff0000><br />: index.php

I have never changed my suphp.conf :

> [global]
> logfile=/var/log/httpd/suphp.log
> loglevel=warn
> webserver_user=httpd
> docroot=/home/httpd:${HOME}
> allow_file_group_writeable=true
> allow_file_others_writeable=false
(Continue reading)

joe | 10 Mar 2012 16:00
Favicon
Gravatar

Re: PHP 5.4.0 with suPHP ?

Hello,

I'm not currently experiencing this: http://jrgp.us:89/540/test.php

root <at> adore:~# /usr/sbin/apache2 -v
Server version: Apache/2.2.22 (Debian)
Server built:   Feb  1 2012 21:36:49
root <at> adore:~#

root <at> adore:~# /usr/lib/suphp/suphp
suPHP version 0.7.1

root <at> adore:~# /opt/php540/bin/php -v
PHP 5.4.0 (cli) (built: Mar 10 2012 09:51:19)

In suphp.conf:
application/x-httpd-suphp-540="php:/opt/php540/bin/php-cgi"

Running it for that folder with the following in my vhost config:

         <Directory /home/joe/public_html/540>
                 suPHP_AddHandler application/x-httpd-suphp-540
                 AddType application/x-httpd-suphp-540 .php .php3 .php4 
.php5 .phtml
         </Directory>

suPHP/Apache as per the latest distribution of Debian Sid with

On 10.03.2012 09:36, Elodie de FranceServ Hébergement wrote:
> Greetings,
(Continue reading)

Picon
Favicon

Re: PHP 5.4.0 with suPHP ? [SOLVED]

Le 10/03/2012 16:00, joe <at> u13.net a écrit :
> Hello,
>
> I'm not currently experiencing this: http://jrgp.us:89/540/test.php

Thanks so much for your response.

It's have permit me to find the problem :)

/etc/init.d/httpd -v
Server version: Apache/2.2.22 (Unix)
Server built:   Feb 16 2012 22:12:26

/usr/local/suphp/sbin/suphp
suPHP version 0.7.1

/usr/local/php/bin/php -v
<font color=ff0000>
Fatal error: Directive 'allow_call_time_pass_reference' is no longer 
available in PHP in Unknown on line 0

so i have removed the "allow_call_time_pass_reference" inside my php.ini 
then :
/usr/local/php/bin/php -v
PHP 5.4.0 (cli) (built: Mar  9 2012 11:50:49)

then :

wget http://elodie.franceserv.fr:8080/phpinfo.php (where 
elodie.franceserv.fr = 127.0.0.1 in my hosts test)
(Continue reading)

joe | 10 Mar 2012 16:37
Favicon
Gravatar

Re: PHP 5.4.0 with suPHP ? [SOLVED]

Yep, you're welcome. Have a good one.

On 10.03.2012 10:30, Elodie de FranceServ Hébergement wrote:
> Le 10/03/2012 16:00, joe <at> u13.net a écrit :
>> Hello,
>>
>> I'm not currently experiencing this: http://jrgp.us:89/540/test.php
>
> Thanks so much for your response.
>
> It's have permit me to find the problem :)
>
> /etc/init.d/httpd -v
> Server version: Apache/2.2.22 (Unix)
> Server built:   Feb 16 2012 22:12:26
>
> /usr/local/suphp/sbin/suphp
> suPHP version 0.7.1
>
> /usr/local/php/bin/php -v
> <font color=ff0000>
> Fatal error: Directive 'allow_call_time_pass_reference' is no longer
> available in PHP in Unknown on line 0
>
> so i have removed the "allow_call_time_pass_reference" inside my
> php.ini then :
> /usr/local/php/bin/php -v
> PHP 5.4.0 (cli) (built: Mar  9 2012 11:50:49)
>
> then :
(Continue reading)


Gmane