# Ruby PHP and Apache

**URL:** <https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319>\
**Category:** rubyonrails-talk\
**Created:** [September 14, 2008, 4:31pm UTC](https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319 "2008-09-14T16:31:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FryShadow](https://avatars.discourse-cdn.com/v4/letter/f/4af34b/32.png) [@FryShadow](https://discuss.rubyonrails.org/u/FryShadow)\
**Post date:** [September 14, 2008, 4:31pm UTC](https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319/1 "2008-09-14T16:31:14Z")

</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:** ![Erol\_Fornoles](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Erol\_Fornoles](https://discuss.rubyonrails.org/u/Erol_Fornoles)\
**Post date:** [September 14, 2008, 5:22pm UTC](https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319/2 "2008-09-14T17:22:44Z")

</div>

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:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [September 14, 2008, 9:01pm UTC](https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319/3 "2008-09-14T21:01:26Z")

</div>

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

michi

FryShadow wrote:

---

<div class="post-metadata">

**Author:** ![Rob\_Lacey1](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@Rob\_Lacey1](https://discuss.rubyonrails.org/u/Rob_Lacey1)\
**Post date:** [September 14, 2008, 9:21pm UTC](https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319/4 "2008-09-14T21:21:24Z")

</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

Michael .. wrote:

---

<div class="post-metadata">

**Author:** ![FryShadow](https://avatars.discourse-cdn.com/v4/letter/f/4af34b/32.png) [@FryShadow](https://discuss.rubyonrails.org/u/FryShadow)\
**Post date:** [September 15, 2008, 2:09am UTC](https://discuss.rubyonrails.org/t/ruby-php-and-apache/34319/5 "2008-09-15T02:09:18Z")

</div>

Thanks for the link guys, I will try that 🙂

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