# Rails start/stop without using mongrel

**URL:** <https://www.ruby-forum.com/t/rails-start-stop-without-using-mongrel/179954>\
**Category:** Deployment\
**Created:** [December 8, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/rails-start-stop-without-using-mongrel/179954 "2009-12-08T18:42:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [December 8, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/rails-start-stop-without-using-mongrel/179954/1 "2009-12-08T18:42:52Z")

</div>

Hi,

I have to get rid of Mongrel and process the http requests directly from  
Tomcat/Apach. Is there any tool or do we have to handle in code?. How to  
run the rails application without using mongrel.

Can you guys reply me how can we handle this?.

Thanks:)  
Periyasamy

---

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [December 9, 2009, 10:30am UTC](https://www.ruby-forum.com/t/rails-start-stop-without-using-mongrel/179954/2 "2009-12-09T10:30:46Z")

</div>

Periyasamy R. wrote:

> Hi,
> 
> I have to get rid of Mongrel and process the http requests directly from  
> Tomcat/Apach. Is there any tool or do we have to handle in code?. How to  
> run the rails application without using mongrel.
> 
> Can you guys reply me how can we handle this?.
> 
> Thanks:)  
> Periyasamy

Hi,

Fine. I installed Phusion passenger on my centOS system as the  
installation instruction. I also added the below lines in apache config  
file,

\<VirtualHost \*:80\>  
ServerName localhost  
DocumentRoot /root/projectname/public # \<-- be sure to point to  
‘public’!  
\<Directory /root/projectname/public\>  
AllowOverride all # \<-- relax Apache security  
settings  
Options -MultiViews # \<-- MultiViews must be turned  
off  
  
  
Then i started the appache by the command, “service httpd start”. But i  
am getting the failed as below,  
Starting httpd: Syntax error on line 999 of /etc/httpd/conf/httpd.conf:  
DocumentRoot takes one argument, Root directory of the document tree  
[FAILED].

Can you help anybody. Did i mistake in my apache config file?. What i  
have to correct?. Plz.

Thanks,  
Periyasamy.

Thanks,  
Periyasamy
