# Dreamhost and fcgi....help!

**URL:** <https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770>\
**Category:** Rails\
**Created:** [March 14, 2006, 2:37am UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770 "2006-03-14T02:37:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [March 14, 2006, 2:37am UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770/1 "2006-03-14T02:37:18Z")

</div>

I’ve got my app running under cgi, but I keep getting pwned by fcgi.

- app is installed at [www.mydomain.com](http://www.mydomain.com)
- web root is [www.mydomain.com/public](http://www.mydomain.com/public) (this works w/ regular cgi)
- /public has correct permissions
- .htaccess: rewrite rule changed to use .fcgi
- shebang on dispatch.fcgi and dispatch.rb is set to #!/usr/bin/ruby1.8  
(also tried just ruby)  
-environment.rb : running in prod

Any ideas? o\_O

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [March 14, 2006, 3:08am UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770/2 "2006-03-14T03:08:33Z")

</div>

You don’t say that you’ve got execute permissions on dispatch.\*… do  
you?

Also, I had some issues on DH that could only be fixed by "kill -9"ing  
the dispatch.fcgi processes.

Finally, to keep my site stable I had to add one of these to my crontab:

\*/10 \* \* \* \* /usr/bin/curl [http://www.direct-debit.com.au/blah](http://www.direct-debit.com.au/blah)  
-o /dev/null --stderr /dev/null

(where /blah is a path that is NOT cached)

HTH,

Dan  
www.peoplehub.com.au

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [March 14, 2006, 3:08am UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770/3 "2006-03-14T03:08:34Z")

</div>

That crontab was supposed to be one line, not two…

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [March 14, 2006, 3:15am UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770/4 "2006-03-14T03:15:14Z")

</div>

I also did a 755 on dispatch\*…no joy

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [March 14, 2006, 3:23am UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770/5 "2006-03-14T03:23:47Z")

</div>

2006/3/13, Chris S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I also did a 755 on dispatch\*…no joy

I have this issue with DreamHost too. Sometimes I simply have to wait  
a while before the app will restart. This is a problem. Wait half an  
hour and try again.

Bye !

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [March 14, 2006, 2:56pm UTC](https://www.ruby-forum.com/t/dreamhost-and-fcgi-help/54770/6 "2006-03-14T14:56:35Z")

</div>

You’re right. I tried my app today and it’s running fine. That was still  
really frustrating…

FranÃ§ois Beausoleil wrote:

> 2006/3/13, Chris S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > I also did a 755 on dispatch\*…no joy
> 
> I have this issue with DreamHost too. Sometimes I simply have to wait  
> a while before the app will restart. This is a problem. Wait half an  
> hour and try again.
> 
> Bye !
