# Ruby PHP and Apache

**URL:** <https://www.ruby-forum.com/t/ruby-php-and-apache/148545>\
**Category:** Rails\
**Created:** [September 14, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545 "2008-09-14T18:46:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FryShadow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/4af34b/32.png) [@FryShadow](https://www.ruby-forum.com/u/FryShadow)\
**Post date:** [September 14, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545/1 "2008-09-14T18:46:29Z")

</div>

Hi guys 🙂

1st of all I’m still new with ruby and just following some tutorial to  
build with ruby language and ruby on rails. Before this I just bootup  
the webrick web server for development.

Things come up, and I want to integrate my RoR project within apache  
web server. So i’m googling around and found this article from  
wiki@rubyonrails [http://wiki.rubyonrails.org/rails/pages/RailsOnCentos5](http://wiki.rubyonrails.org/rails/pages/RailsOnCentos5)

is it possible i integrate php and ruby on rails with the same web  
server n folder like /var/www/html

thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![FryShadow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/4af34b/32.png) [@FryShadow](https://www.ruby-forum.com/u/FryShadow)\
**Post date:** [September 14, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545/2 "2008-09-14T19:24:05Z")

</div>

On Sep 15, 12:31 am, FryShadow [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> is it possible i integrate php and ruby on rails with the same web  
> server n folder like /var/www/html
> 
> thanks in advance 🙂

Don’t know how it’s set up, but the hosting provider I use comes with  
Rails and PHP integration, which means I could run PHP pages on my  
Rails /public directory.

---

<div class="post-metadata">

**Author:** ![FryShadow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/4af34b/32.png) [@FryShadow](https://www.ruby-forum.com/u/FryShadow)\
**Post date:** [September 14, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545/3 "2008-09-14T23:01:26Z")

</div>

yes it’s possible.  
have a look at passenger [http://www.modrails.com/](http://www.modrails.com/)

michi

FryShadow wrote:

> Hi guys 🙂
> 
> 1st of all I’m still new with ruby and just following some tutorial to  
> build with ruby language and ruby on rails. Before this I just bootup  
> the webrick web server for development.
> 
> Things come up, and I want to integrate my RoR project within apache  
> web server. So i’m googling around and found this article from  
> wiki@rubyonrails [http://wiki.rubyonrails.org/rails/pages/RailsOnCentos5](http://wiki.rubyonrails.org/rails/pages/RailsOnCentos5)
> 
> is it possible i integrate php and ruby on rails with the same web  
> server n folder like /var/www/html
> 
> thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![FryShadow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/4af34b/32.png) [@FryShadow](https://www.ruby-forum.com/u/FryShadow)\
**Post date:** [September 14, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545/4 "2008-09-14T23:22:48Z")

</div>

I do exactly that with my Xen server using Passenger, and both  
applications run fine, the Rails app is a little slow on the first  
request but all in all its a nicer cleaner solution than mod\_proxy and  
several mongrels. Oh and the installer makes everything a doddle.

Rob

---

<div class="post-metadata">

**Author:** ![FryShadow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/4af34b/32.png) [@FryShadow](https://www.ruby-forum.com/u/FryShadow)\
**Post date:** [September 15, 2008, 4:10am UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545/5 "2008-09-15T04:10:05Z")

</div>

Thanks for the link guys, I will try that 🙂

I think apache should have mod\_ruby just like apache do with php 😛

On Sep 14, 2:01 pm, “Michael …” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
