Hi theboy50,
thanks for this tutorial. I tried to get the lighttpd run with php support.
I did what you've explained in your tutorial, but everytime when I start
the lighttpd-server, the fast-cgi process was killed.
Then I tried to start the fast-cgi directly with the lighttpd:
ps ax tells my that everything works fine:Code:fastcgi.server = (".php" => ( "localhost" => ( "socket" => "/tmp/php-fastcgi.socket", "bin-path" => "/opt/bin/php-fcgi", "bin-environment" => ( "PHP_FCGI_CHILDREN" => "1", "PHP_FCGI_MAX_REQUESTS" => "5000" ) ) ) )
But after a few seconds ps ax tells me this:Code:168 admin 704 S /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf 169 admin 1048 D /opt/bin/php-fcgi 170 admin 1048 D /opt/bin/php-fcgi 171 admin 1048 D /opt/bin/php-fcgi 172 admin 1048 D /opt/bin/php-fcgi
It seams that the motherprocess died and the child processes form php-fcgi are running asCode:168 admin 624 S /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf 169 admin Z [php-fcgi] 170 admin Z [php-fcgi] 171 admin Z [php-fcgi] 172 admin Z [php-fcgi]
zombies.
When I try to load a php file from the document-root I get the following error-message in the
error-log-file form the lighttpd:
Any Idea why the fast-cgi process get killed after a few seconds?Code:2006-05-14 11:08:36: (mod_fastcgi.c.1739) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-3 2006-05-14 11:08:36: (mod_fastcgi.c.2851) backend died, we disable it for a 5 seconds and send the request to another backend instead: reconnects: 0 load: 1 2006-05-14 11:08:36: (mod_fastcgi.c.2624) child signaled: 10 2006-05-14 11:08:38: (mod_fastcgi.c.2430) unexpected end-of-file (perhaps the fastcgi process died): pid: 178 socket: unix:/tmp/php-fastcgi.socket-3 2006-05-14 11:08:38: (mod_fastcgi.c.3172) child signaled: 10 2006-05-14 11:08:38: (mod_fastcgi.c.3215) response not received, request sent: 862 on socket: unix:/tmp/php-fastcgi.socket-3 for /index.php , closing connection
I've installed the following packages, perhaps there is a package which makes trouble with fast-cgi:
Thankx.Code:Package: bash Version: 2.05b-5 Depends: ncurses Status: install user installed Architecture: mipsel Package: bzip2 Version: 1.0.3-5 Status: install user installed Architecture: mipsel Package: coreutils Version: 5.2.1-9 Conflicts: busybox-links Status: install user installed Architecture: mipsel Package: cron Version: 4.1-4 Status: install user installed Architecture: mipsel Package: ctorrent Version: 1.3.4-2 Depends: libstdc++, openssl Status: install user installed Architecture: mipsel Package: esmtp Version: 0.5.1-2 Depends: libesmtp Conflicts: postfix Status: install user installed Architecture: mipsel Package: expat Version: 1.95.8-3 Status: install ok installed Architecture: mipsel Package: fontconfig Version: 2.3.2-1 Depends: expat, freetype, gconv-modules Status: install ok installed Architecture: mipsel Package: freetype Version: 2.1.10-1 Depends: zlib Status: install ok installed Architecture: mipsel Package: gconv-modules Version: 2.2.5-5 Status: install ok installed Architecture: mipsel Package: gdbm Version: 1.8.3-2 Status: install ok installed Architecture: mipsel Package: ipkg Version: 0.99.149-2 Status: install user installed Essential: yes Architecture: mipsel Package: less Version: 394-1 Depends: ncurses Status: install user installed Architecture: mipsel Package: libbt Version: 1.05-4 Depends: libcurl, openssl, zlib Status: install user installed Architecture: mipsel Package: libcurl Version: 7.15.3-1 Status: install user installed Architecture: mipsel Package: libdb Version: 4.2.52-3 Status: install user installed Architecture: mipsel Package: libesmtp Version: 1.0.4-1 Status: install user installed Architecture: mipsel Package: libgd Version: 2.0.33-2 Depends: libpng, libjpeg, freetype, fontconfig Status: install ok installed Architecture: mipsel Package: libjpeg Version: 6b-2 Status: install ok installed Architecture: mipsel Package: libpng Version: 1.2.8-5 Depends: zlib Status: install ok installed Architecture: mipsel Package: libstdc++ Version: 0.1.12-3 Depends: libuclibc++ Status: install ok installed Architecture: mipsel Package: libuclibc++ Version: 0.1.12-3 Status: install ok installed Architecture: mipsel Package: libxml2 Version: 2.6.23-1 Depends: zlib Status: install user installed Architecture: mipsel Package: libxslt Version: 1.1.15-5 Depends: libxml2 Status: install user installed Architecture: mipsel Package: lighttpd Version: 1.4.11-2 Depends: pcre, zlib Suggests: bzip2, libmemcache, lua, memcached, mysql, openldap, openssl Status: install user installed Architecture: mipsel Package: lzo Version: 1.08-2 Status: install ok installed Architecture: mipsel Package: mc Version: 4.1.35-2 Depends: ncurses Status: install user installed Architecture: mipsel Package: microperl Version: 5.8.6-3 Status: install user installed Architecture: mipsel Package: ncurses Version: 5.5-1 Status: install user installed Architecture: mipsel Package: openssl Version: 0.9.7d-4 Status: install user installed Architecture: mipsel Package: pcre Version: 5.0-5 Status: install ok installed Architecture: mipsel Package: php Version: 5.1.4-1 Depends: bzip2, openssl, zlib, libxml2, libxslt, gdbm, libdb Status: install user installed Architecture: mipsel Conffiles: /opt/etc/php.ini 211ce782fa34ea1da50a564a63094fe3 Installed-Time: 1147542320 Package: php-fcgi Version: 5.1.4-1 Depends: php (5.1.4), pcre Status: install user installed Architecture: mipsel Package: php-mysql Version: 5.0.3-13 Depends: php, mysql Status: install user not-installed Architecture: mipsel Package: php-mysql Version: 5.0.3-12 Depends: php, mysql Status: install user not-installed Architecture: mipsel Package: php-thttpd Version: 2.25b-5.0.3-5 Depends: php Conflicts: thttpd Status: install user not-installed Architecture: mipsel Package: php-thttpd Version: 2.25b-5.1.4-1 Depends: php (>= 5.0.3-8), libxml2 Conflicts: thttpd Status: install user installed Architecture: mipsel Package: poptop Version: 1.2.1-1 Status: install user installed Architecture: mipsel Package: readline Version: 5.0-2 Status: install ok installed Architecture: mipsel Package: screen Version: 4.0.2-2 Depends: termcap Status: install user installed Architecture: mipsel Package: termcap Version: 1.3.1-2 Status: install ok installed Architecture: mipsel Package: torrent Version: 1.3-8 Depends: libbt, coreutils Status: install user installed Architecture: mipsel Package: vsftpd Version: 2.0.1-7 Status: install user installed Architecture: mipsel Package: xinetd Version: 2.3.13-4 Status: install user installed Architecture: mipsel Package: zlib Version: 1.2.2-2 Status: install user installed Architecture: mipsel
Best regards
mmX


Reply With Quote

