# Noob here: can php files in rails public folder be ok?

**URL:** <https://www.ruby-forum.com/t/noob-here-can-php-files-in-rails-public-folder-be-ok/139848>\
**Category:** Rails\
**Created:** [June 8, 2008, 3:29am UTC](https://www.ruby-forum.com/t/noob-here-can-php-files-in-rails-public-folder-be-ok/139848 "2008-06-08T03:29:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauibbq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@mauibbq](https://www.ruby-forum.com/u/mauibbq)\
**Post date:** [June 8, 2008, 3:29am UTC](https://www.ruby-forum.com/t/noob-here-can-php-files-in-rails-public-folder-be-ok/139848/1 "2008-06-08T03:29:18Z")

</div>

my designer friend wants to use php for certain pages. i was planning to  
add those pages in the rails app public folder. would the php code be  
executed? t the php code is simply for some view functionality(no  
database interaction or calling other scripts). if so, do i need to  
configure anything in my rails app?

if i am running on apache linux, is there some configuration in my app  
needed? other than making sure php is installed?

thanks for any help!

---

<div class="post-metadata">

**Author:** ![mauibbq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@mauibbq](https://www.ruby-forum.com/u/mauibbq)\
**Post date:** [June 9, 2008, 8:30am UTC](https://www.ruby-forum.com/t/noob-here-can-php-files-in-rails-public-folder-be-ok/139848/2 "2008-06-09T08:30:57Z")

</div>

On Jun 7, 9:29 pm, Koloa P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> my designer friend wants to use php for certain pages. i was planning to  
> add those pages in the rails app public folder. would the php code be  
> executed? t the php code is simply for some view functionality(no  
> database interaction or calling other scripts). if so, do i need to  
> configure anything in my rails app?
> 
> if i am running on apache linux, is there some configuration in my app  
> needed? other than making sure php is installed?

Should probably work… might need to proxy\_pass \*.php$ if you’re  
proxying to a mongrel cluster
