# Php application inside rails public directory?

**URL:** <https://www.ruby-forum.com/t/php-application-inside-rails-public-directory/65341>\
**Category:** Rails\
**Created:** [August 17, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/php-application-inside-rails-public-directory/65341 "2006-08-17T16:47:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [August 17, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/php-application-inside-rails-public-directory/65341/1 "2006-08-17T16:47:56Z")

</div>

Hi all,  
I need to install cerberus inside my rails app’s public directory… I  
agree that the best method would be to put the whole php app in it’s own  
subdomain, but for now (i’m just testing) that’s not possible…  
What would be the way to do that?  
thanks!  
rolando.-

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [August 17, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/php-application-inside-rails-public-directory/65341/2 "2006-08-17T19:29:54Z")

</div>

i have done this before by putting the subdomain inside an IFRAME on a  
rails  
view page. Otherwise I think your only 2 other choices are drop it in  
the  
public/’ directory or use a Location rule of some sorts to use a  
different  
DocRoot

adam

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [August 17, 2006, 10:50pm UTC](https://www.ruby-forum.com/t/php-application-inside-rails-public-directory/65341/3 "2006-08-17T22:50:38Z")

</div>

unknown wrote:

> i have done this before by putting the subdomain inside an IFRAME on a  
> rails  
> view page. Otherwise I think your only 2 other choices are drop it in  
> the  
> public/’ directory or use a Location rule of some sorts to use a  
> different  
> DocRoot
> 
> adam

yes… I finally desisted that idea and used another subdomain 🙂

rolando.-
