# Re: Apache 1.3 + FastCGI shared hosting problems

**URL:** <https://www.ruby-forum.com/t/re-apache-1-3-fastcgi-shared-hosting-problems/92940>\
**Category:** Radiant CMS\
**Created:** [April 25, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/re-apache-1-3-fastcgi-shared-hosting-problems/92940 "2007-04-25T22:12:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [April 25, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/re-apache-1-3-fastcgi-shared-hosting-problems/92940/1 "2007-04-25T22:12:24Z")

</div>

/config/eviroment.rb

Add line: ENV[‘HOME’] = ‘/home/davidlt’ #just change “davidlt” yo our  
user. On some hosting RoR doesn’t work without it.

----- Original Message ----  
From: doug [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Wednesday, April 25, 2007 7:22:50 PM  
Subject: Re: [Radiant] Apache 1.3 + FastCGI shared hosting problems

hi All,

John W. Long wrote:

> 1. A library or file that dispatch.cgi is using wasn’t found or has the  
> wrong permissions
> 
> The premature end of script headers means that the script is dying  
> before it can even start up.
> 
> BTW, you are using CGI not Fast CGI. Is this intentional? CGI is not  
> considered to be production worthy for Rails apps.

I am getting the same kind of error (only running under  
apache2+mod\_fcgid on debian sarge)

I also get this:

[Wed Apr 25 15:45:50 2007] [notice] mod\_fcgid: server  
/var/www/radiant-test/public/dispatch.fcgi(30212) started  
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/railties/lib/rails\_generator/lookup.rb:33:in  
`expand_path': couldn't find HOME environment -- expanding `~’  
(ArgumentError)

permissions look fine.

unsure if thats a helpful addition, but thought i’d flag it anyway.

cheers,

–  
doug lang tel: +44 (1273) 808949  
\*nix sysadmin [http://www.netdotnet.net/](http://www.netdotnet.net/)  
technical consultant [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

Radiant mailing list  
Post: removed\_email\_address@domain.invalid  
Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [April 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/re-apache-1-3-fastcgi-shared-hosting-problems/92940/2 "2007-04-25T22:40:29Z")

</div>

David A. wrote:

> /config/eviroment.rb
> 
> Add line: ENV[‘HOME’] = ‘/home/davidlt’ #just change “davidlt” yo our  
> user. On some hosting RoR doesn’t work without it.

thanks for that… odd that that would be a showstopper.

cheers,

–  
doug lang tel: +44 (1273) 808949  
\*nix sysadmin [http://www.netdotnet.net/](http://www.netdotnet.net/)  
technical consultant [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [April 26, 2007, 2:39am UTC](https://www.ruby-forum.com/t/re-apache-1-3-fastcgi-shared-hosting-problems/92940/3 "2007-04-26T02:39:44Z")

</div>

I wonder if I have the same problem! I do not understand whose ‘HOME’  
we  
are trying to set a pointer to. For example, I froze my radiant app so  
my  
directory structure is as follows:  
/var/www/vhosts/[domain]/httpdocs/[myRadiantApp]/vendor/radiant
