# Help with rails and apache

**URL:** <https://www.ruby-forum.com/t/help-with-rails-and-apache/87280>\
**Category:** Rails\
**Created:** [March 26, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280 "2006-03-26T14:50:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 26, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280/1 "2006-03-26T14:50:47Z")

</div>

i just went through the tutorial on  
[http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel](http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel)  
but i’m having some problems.

when i add:  
  
FastCgiIpcDir /tmp/fcgi\_ipc/  
AddHandler fastcgi-script .fcgi

under the line that says:  
LoadModule fastcgi\_module libexec/mod\_fastcgi.so

apache fails to restart.

i went on through the rest of the tutorial, but i can’t set up my rails  
apps to work right. i set up a directory for my rails app above my  
public\_html directory, made an alias to it so that you can go to  
[www.mydomain.com/rails/](http://www.mydomain.com/rails/), changed the dispatch.fcgi, and the .htaccess  
file. however when i go to it, i do not yet get the RoR welcome screen.  
instead i get 404 erros: The requested URL /testapp/index.html was not  
found on this server.

has anyone had experience with apache and ror that could tell me what i  
did wrong?

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 26, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280/2 "2006-03-26T15:12:16Z")

</div>

> under the line that says:  
> LoadModule fastcgi\_module libexec/mod\_fastcgi.so
> 
> apache fails to restart.

First of all you may want to tell us what your environment is, what OS  
are you running, which version of apache etc. Next thing you can do is  
to find out where your other modules are located. Is mod\_fastcgi  
located the same place?

regards  
Claus

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 26, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280/3 "2006-03-26T15:17:51Z")

</div>

> First of all you may want to tell us what your environment is, what OS  
> are you running, which version of apache etc. Next thing you can do is  
> to find out where your other modules are located. Is mod\_fastcgi  
> located the same place?
> 
> regards  
> Claus

i am running RedHat i686, apache 1.34 i think. to be honest i’m not sure  
where all of the files are. i’m still pretty new to the command line and  
i just went through whatever instructions are provided on the previously  
mentioned tutorial.

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 26, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280/4 "2006-03-26T22:17:44Z")

</div>

> i am running RedHat i686, apache 1.34 i think. to be honest i’m not sure  
> where all of the files are. i’m still pretty new to the command line and  
> i just went through whatever instructions are provided on the previously  
> mentioned tutorial.

Try an ‘apachectl configtest’ in a shell.

To see what apache-version is installed you can do a ‘rpm -a|grep  
apache’.

regards  
Claus
