# Can't quite get Rails working on Mac, help please :)

**URL:** <https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970>\
**Category:** Rails\
**Created:** [March 25, 2006, 4:37am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970 "2006-03-25T04:37:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-unit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@c-unit](https://www.ruby-forum.com/u/c-unit)\
**Post date:** [March 25, 2006, 4:37am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970/1 "2006-03-25T04:37:18Z")

</div>

I’ve followed the install the install guide on

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

and it seemed to work. And I’ve been following the Instant Gratifiction  
guide in Chapter four in Agile Web D. with Rails book. I’m in  
terminal and I type -

cd work (everything works fine) then  
rails demo (everything seems to work) then  
cd demo (all goes well) then  
ls -p (nothing wrong) then  
ruby script server - and i get this error -

ruby: Is a directory - script (Errno::EISDIR)  
william-mors-powerbook-g4-15:~/work/demo cooper$ ruby script/server  
=\> 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 (requires absolute paths in  
config/lighttpd.conf)  
=\> Ctrl-C to shutdown server (see config/lighttpd.conf for options)  
2006-03-24 21:50:10: (mod\_fastcgi.c.1022) execve failed for:  
public/dispatch.fcgi No such file or directory  
2006-03-24 21:50:10: (mod\_fastcgi.c.1048) the fastcgi-backend  
public/dispatch.fcgi failed to start:  
2006-03-24 21:50:10: (mod\_fastcgi.c.1052) child exited with status 2  
public/dispatch.fcgi  
2006-03-24 21:50:10: (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](http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program)  
2006-03-24 21:50:10: (mod\_fastcgi.c.1060) If this is PHP on Gentoo add  
fastcgi to the USE flags  
2006-03-24 21:50:10: (mod\_fastcgi.c.1356) [ERROR]: spawning fcgi failed.  
2006-03-24 21:50:10: (server.c.834) Configuration of plugins failed.  
Going down.

Does anyone have any insight? Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![c-unit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@c-unit](https://www.ruby-forum.com/u/c-unit)\
**Post date:** [March 25, 2006, 4:46am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970/2 "2006-03-25T04:46:47Z")

</div>

On 3/24/06, Cooper M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ruby script server - and i get this error -

Could this be due to a recent change in Lighttpd?

> From [Bug #487: Lighty 1.4.9 no likey relative bin-paths - Lighttpd - lighty labs](http://trac.lighttpd.net/trac/ticket/487) …

* * *

in lighttpd 1.4.10 you will have CWD in your configfiles:

“bin-path” =\> CWD + “/public/dispatch.fcgi”

## which will point to the current working dir. We had to change the bin-path base dir to / for security reasons.

Adding the “CWD +” part fixed for me what looks like the same error.

–  
Jack Baty  
Fusionary Media - [http://www.fusionary.com](http://www.fusionary.com)

---

<div class="post-metadata">

**Author:** ![c-unit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@c-unit](https://www.ruby-forum.com/u/c-unit)\
**Post date:** [March 25, 2006, 4:49am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970/3 "2006-03-25T04:49:38Z")

</div>

Not sure about the second issue, but your first problem is caused  
because the command should be “ruby script/server” not “ruby script  
server”.

---

<div class="post-metadata">

**Author:** ![c-unit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@c-unit](https://www.ruby-forum.com/u/c-unit)\
**Post date:** [March 25, 2006, 5:06am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970/4 "2006-03-25T05:06:57Z")

</div>

Steven S. wrote:

> Not sure about the second issue, but your first problem is caused  
> because the command should be “ruby script/server” not “ruby script  
> server”.

Oops that was a typo, in my post, I did it right in terminal.

---

<div class="post-metadata">

**Author:** ![c-unit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@c-unit](https://www.ruby-forum.com/u/c-unit)\
**Post date:** [March 25, 2006, 6:44am UTC](https://www.ruby-forum.com/t/cant-quite-get-rails-working-on-mac-help-please/86970/5 "2006-03-25T06:44:16Z")

</div>

lighttpd after version 1.4.9 requires the full path in the “bin-path”  
part  
of the lighttpd.conf file. So instead of:  
“bin-path” =\> “public/dispatch.fcgi”,  
You will need to do:  
“bin-path” =\> “/Users/USERNAME/demo/public/dispatch.fcgi”,

-Steve  
[http://www.stevelongdo.com](http://www.stevelongdo.com)
