# Lighttpd Configuration Problems

**URL:** <https://www.ruby-forum.com/t/lighttpd-configuration-problems/55710>\
**Category:** Rails\
**Created:** [March 23, 2006, 4:37am UTC](https://www.ruby-forum.com/t/lighttpd-configuration-problems/55710 "2006-03-23T04:37:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![interactivenyc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Post date:** [March 23, 2006, 4:37am UTC](https://www.ruby-forum.com/t/lighttpd-configuration-problems/55710/1 "2006-03-23T04:37:26Z")

</div>

Hey Folks!

I’ve got a Fedora Core 4 machine that I’m installing Ruby on Rails on,  
following this set of instructions:

[http://www.digitalmediaminute.com/howto/fc4rails/](http://www.digitalmediaminute.com/howto/fc4rails/)

Everything has gone well up until I get to the part about configuring  
lighttpd to use virtual hosts. Here’s the chunk of code I’ve got in my  
config file that appears to be the culprit. When I remove it, the  
server starts right up - when I leave it in, I get “lighttpd dead but  
subsys locked”:

* * *

# simple virtual hosting

simple-vhost.server-root = “/home/swarren/”  
simple-vhost.default-host = “test”  
simple-vhost.document-root = “public”

# Start of test vhost

$HTTP[“host”] == “test” {  
server.document-root = “/home/swarren/test/public/”  
accesslog.filename = “/home/swarren/test/log/access.log”  
server.indexfiles = ( “dispatch.fcgi”, “index.html” )  
server.error-handler-404 = “/dispatch.fcgi”

# rails stuff

#### fastcgi module

fastcgi.server = (  
“.fcgi” =\> (  
“test” =\> (  
“socket” =\> “/tmp/test1.socket”,  
“bin-path” =\> “/home/swarren/test/public/dispatch.fcgi”,  
“min-procs” =\> 1,  
“max\_procs” =\> 2  
)  
)  
)  
}

# End of test vhost

* * *

Does anything jump out as being obviously wrong here? the test, public  
and log folders are all owned by user swarren, and fully opened to  
read/write/execute.

Any advice would be greatly appreciated.

Steve Warren

---

<div class="post-metadata">

**Author:** ![interactivenyc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Post date:** [March 23, 2006, 8:39am UTC](https://www.ruby-forum.com/t/lighttpd-configuration-problems/55710/2 "2006-03-23T08:39:32Z")

</div>

I’m couldnt get llighttpd with fastcgi up with those instructions  
neither.  
I’m running Archlinux though.

---

<div class="post-metadata">

**Author:** ![interactivenyc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Post date:** [March 24, 2006, 12:14am UTC](https://www.ruby-forum.com/t/lighttpd-configuration-problems/55710/3 "2006-03-24T00:14:18Z")

</div>

steve warren wrote:

> server starts right up - when I leave it in, I get "lighttpd dead but  
> server.document-root = “/home/swarren/test/public/”  
> “bin-path” =\> “/home/swarren/test/public/dispatch.fcgi”,  
> and log folders are all owned by user swarren, and fully opened to  
> read/write/execute.
> 
> Any advice would be greatly appreciated.
> 
> Steve Warren

Nothing looks wrong there, but to get lighttpd & fastcgi working on my  
FC4 install, I needed to recompile fastcgi from source (if I remember  
correctly).

Regards Neil.
