Ever since I moved my dev environment from my Powerbook to my new
MacBook Pro, I cannot run the lighttpd webserver - it starts and
immediately crashes out with an error (see below) saying a file does not
exist. I’ve checked the file does exist.
WEBrick works without any problem.
Has anyone else experienced this problem?
John:~/web john$ ruby script/server
=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
2006-06-14 19:40:30: (mod_fastcgi.c.1022) execve failed for:
public/dispatch.fcgi No such file or directory
2006-06-14 19:40:30: (mod_fastcgi.c.1048) the fastcgi-backend
public/dispatch.fcgi failed to start:
2006-06-14 19:40:30: (mod_fastcgi.c.1052) child exited with status 2
public/dispatch.fcgi
2006-06-14 19:40:30: (mod_fastcgi.c.1055) if you try do run PHP as
FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing ‘php -v’ and it
should display ‘(cgi-fcgi)’ in the output, NOT (cgi) NOR (cli)
For more information check
http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
2006-06-14 19:40:30: (mod_fastcgi.c.1060) If this is PHP on Gentoo add
fastcgi to the USE flags
2006-06-14 19:40:30: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
2006-06-14 19:40:30: (server.c.834) Configuration of plugins failed.
Going down.
Exiting
John:~/web john$ cd public
John:~/web/public john$ ls -l
total 56
-rw-r–r-- 1 john john 235 Mar 28 17:32 404.html
-rw-r–r-- 1 john john 318 Mar 28 17:32 500.html
-rwxr-xr-x 1 john john 479 Mar 28 17:32 dispatch.cgi
-rwxrwxrwx 1 john john 861 Mar 28 17:32 dispatch.fcgi
-rwxr-xr-x 1 john john 479 Mar 28 17:32 dispatch.rb
-rw-r–r-- 1 john john 0 Mar 28 17:32 favicon.ico
drwxr-xr-x 367 john john 12478 Jun 8 23:23 images
-rw-r–r-- 1 john john 50 May 3 19:43 index.html
drwxr-xr-x 46 john john 1564 Jun 13 23:04 javascripts
-rw-r–r-- 1 john john 99 Mar 28 17:32 robots.txt
drwxr-xr-x 25 john john 850 Jun 10 21:05 stylesheets