I'm trying to run rails on RHED (centos 4) by following this tutorial:
http://wiki.rubyonrails.org/rails/pages/RailsOnRHEL
and something is gone a bit astray during the install process that is not allowing lighttpd \ apache to run rails on the web.
Since i'm running Centos, I should mention I'm NOT running SELinux.
As it is, i'm at a total loss as to why this is not working: I've created my init app (admin) with the correct path. The public folder has the dispatch.fcgi. All the logs are correctly located, as is the pid yet STILL when I run:
[root@test lighttpd]# service lighttpd start Starting lighttpd: [ OK ]
I get:
[root@test lighttpd]# service lighttpd status lighttpd dead but pid file exists
Could anyone tell me why lighttpd won't light up!?
Here is my lighttpd.conf for your consideration:
server.document-root = "/home/www/web4/web/admin/"
## where to send error-messages to server.errorlog = "/var/log/lighttpd/error_log.log"
# files to check for if .../ is requested server.indexfiles = ( "index.php", "index.html", "index.htm", "default.htm" )
server.error-handler-404 = "/home/www/web4/web/admin/public/dispatch.fcgi"
server.port = 8080
## to help the rc.scripts server.pid-file = "/var/run/lighttpd.pid"
## change uid to <uid> (default: don't care) server.username = "lighttpd"
## change uid to <uid> (default: don't care) server.groupname = "lighttpd"
fastcgi.server = ( ".fcgi" => ( "rails" => ( "socket" => "/tmp/lighttpd-fcgi.socket", "bin-path" => "/home/www/web4/web/admin/public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "production" ), "min-procs" => 2, "max-procs" => 2 ) ) )