DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-09-02 21:22:38

Allowee
New member
Registered: 2008-09-02
Posts: 2

php5 not working

Hi there,

following the wiki pages I found that php4 works fine, but php5 doesnt.

I keep getting errors in my lighttpd error log:

2008-09-02 19:58:47: (mod_fastcgi.c.2430) unexpected end-of-file (perhaps the fastcgi process died): pid: 21042 socket: tcp:127.0.0.1:1027
2008-09-02 19:58:47: (mod_fastcgi.c.3230) response already sent out, but backend returned error on socket: tcp:127.0.0.1:1027 for /main.php , terminating connection 

I there anyone who has a solution for this?
php runs but then crashes it seems (phpinfo() works, others scripts fail half the page)

I really like to use php5 since it has sqlite support

Offline

 

#2 2008-09-04 14:48:34

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: php5 not working

I recognize the first error message. In my case i think it was a memory problem, this might be you problem too? Do you run (a lot of) other processes?

If you type ps how is the php process called? something like '/mnt/HD_a2/lighttpd/php-cgi' or more like '[php-cgi]'? In the second case i think the process realy died. Did you restart the dsm-g600?

Offline

 

#3 2008-09-05 17:25:05

Allowee
New member
Registered: 2008-09-02
Posts: 2

Re: php5 not working

i'm running nothing more then usuall, except for lighttpd

The processes are like /mnt/HD_a2/lighttpd/php

lighttpd.conf part

"host" => "127.0.0.1",
     "port" => 1026,
     "bin-path" => "/mnt/HD_a2/lighttpd/php",
     "min-procs" => 1,
     "max-procs" => 2,
     "max-load-per-proc" => 8,
     "idle-timeout" => 50,
     "broken-scriptfilename" => "enable"

I noticed you have a more up-to-date php5 version on your site, but it doesn't let me download it. (404 error)
i'm currently using the 5.1.6 version from the download pages here.

i also just rebooted the nas... but it does not help

Offline

 

#4 2008-09-05 21:50:20

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: php5 not working

Unfortunately i think i can't help you any further. Although there is a small difference between our lighttpd.conf my "max-procs" value is 4 and "min-procs" 2, but I read min-procs is deprecated since version 1.3 anyway.   

I think it makes no sense to try another version since I was able to run the 5.1.6 version without any errors.

I noticed you have a more up-to-date php5 version on your site, but it doesn't let me download it. (404 error)

You can download the files using the (right click) save target as option, but maybe I'll make an archive file.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB