500 error using lighttpd, fastcgi and PHP on file upload
Posted
by
Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2012-03-23T22:49:16Z
Indexed on
2012/03/23
23:29 UTC
Read the original article
Hit count: 525
I have a server running lighttpd with fastcgi, and it appears to be working correctly.
However when I try to upload a file using a form, I get a 500 Internal server error, along with the following in the logs:
2012-03-23 18:25:09: (mod_fastcgi.c.2566) unexpected end-of-file (perhaps the fastcgi process died): pid: 2755 socket: unix:/tmp/php-fastcgi-1.socket-0
2012-03-23 18:25:09: (mod_fastcgi.c.3354) response not received, request sent: 50437 on socket: unix:/tmp/php-fastcgi-1.socket-0 for /index.php?url=brand/manager, closing connection
I've been looking around for a long while now trying to find a solution to the issue, but nothing I'm trying is working. My current fastcgi conf looks as follows:
server.modules += ( "mod_fastcgi" )
fastcgi.server = ( ".php" =>
((
"socket" => "/tmp/php-fastcgi-1.socket",
"bin-path" => "/usr/bin/php-cgi",
"allow-x-send-file" => "enable",
"max-procs" => 1,
"broken-scriptfilename" => "enable"
))
)
If anyone could suggest if there is anything wrong in the configuration it would be greatly appreciated, or any suggestion as to what I might do? As I say, it is only happening when trying to upload a file (the file in question being only 45k).
Thanks,
Dan
© Stack Overflow or respective owner