# Webrick and Lighttpd

**URL:** <https://www.ruby-forum.com/t/webrick-and-lighttpd/80061>\
**Category:** Rails\
**Created:** [March 12, 2006, 7:07am UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061 "2006-03-12T07:07:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [March 12, 2006, 7:07am UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061/1 "2006-03-12T07:07:41Z")

</div>

I just went thru the hivelogic article to get everything installed on my  
new mac. I then decided to run thru the ADC Rails article. In the  
article it says to run ‘script/server’ which will start lighttpd if  
installed or webrick if not. When I do it, I get webrick not lighttpd. I  
followed the hivelogic article word for word and everything else seems  
to be working fine. Is there something I need to do to the  
lighttpd.config file to make this work? The ADC article makes it sound  
like it should just work.

help?

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [March 12, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061/2 "2006-03-12T20:38:58Z")

</div>

Make sure lighttpd is in your PATH.

From the bash prompt:

which lighttpd

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [March 12, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061/3 "2006-03-12T20:54:14Z")

</div>

Tom M. wrote:

> Make sure lighttpd is in your PATH.
> 
> From the bash prompt:
> 
> which lighttpd
> 
> –  
> – Tom M.

Returned:

/usr/local/sbin/lighttpd

That looks right to me.

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [March 13, 2006, 1:44pm UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061/4 "2006-03-13T13:44:58Z")

</div>

On 12 Mar 2006, at 20:54, Ron G. wrote:

> Returned:
> 
> /usr/local/sbin/lighttpd
> 
> That looks right to me.

Had the same problem and solved it this way:

1. Open the Terminal
2. Instead of “mate ~/.bash\_login”, type “sudo pico  
~/.bash\_login” (your file will show empty here, meaning the PATH  
wasn’t saved correctly last time around)
3. Copy/Paste the following lines:

export PATH=“/usr/local/bin:/usr/local/sbin:$PATH”  
export PATH=“/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH”

If you plan on installing RMagick, you’ll probably want to add this  
line too:

export PATH=“/opt/local/bin:/opt/local/sbin:$PATH”

1. Type “Control-X” and save the file
2. You might need to chmod 777 the .bash\_login file, I’m not sure  
anymore.
3. Open a new Terminal window and query “ruby --version” (it should  
show “ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0]”)
4. Make a new rails application somewhere with “rails myappname”
5. cd myappname
6. script/server

It should now read:  
=\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server (see config/lighttpd.conf for options)

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [March 14, 2006, 5:01am UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061/5 "2006-03-14T05:01:27Z")

</div>

Fixed.  
Looks like I forgot to install FCGI.

---

<div class="post-metadata">

**Author:** ![rgreen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Post date:** [March 14, 2006, 2:23am UTC](https://www.ruby-forum.com/t/webrick-and-lighttpd/80061/6 "2006-03-14T02:23:20Z")

</div>

Thanks Peter, but that wasn’t it. I opened .bash\_login with pico and  
both lines are there and typed correctly.  
I did a control-x and tried script/server but it still started webrick.
