# Rails + Apache + php

**URL:** <https://www.ruby-forum.com/t/rails-apache-php/137346>\
**Category:** Rails\
**Created:** [May 12, 2008, 8:48am UTC](https://www.ruby-forum.com/t/rails-apache-php/137346 "2008-05-12T08:48:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ripan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df705f/32.png) [@ripan](https://www.ruby-forum.com/u/ripan)\
**Post date:** [May 12, 2008, 8:48am UTC](https://www.ruby-forum.com/t/rails-apache-php/137346/1 "2008-05-12T08:48:12Z")

</div>

Hi …  
I am trying to integrate word press with rails  
I created php file in public folder of rails…  
Whenever i try to open that file…  
using  
[http://localhost/abc.php](http://localhost/abc.php)

a dialogue box appears …but i want the php file to b opened.

Can anyboy tel me the solution why i am getting a dislogue box instead  
of the printed contents of php file

ripan

---

<div class="post-metadata">

**Author:** ![ripan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df705f/32.png) [@ripan](https://www.ruby-forum.com/u/ripan)\
**Post date:** [May 13, 2008, 5:42am UTC](https://www.ruby-forum.com/t/rails-apache-php/137346/2 "2008-05-13T05:42:07Z")

</div>

On 5/12/08, ripan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am trying to integrate word press with rails  
> I created php file in public folder of rails…  
> Whenever i try to open that file…  
> using  
> [http://localhost/abc.php](http://localhost/abc.php)
> 
> a dialogue box appears …but i want the php file to b opened.
> 
> Can anyboy tel me the solution why i am getting a dislogue box instead  
> of the printed contents of php file

I’ll take a guess and say you’re trying to serve PHP files from a  
server that doesn’t support serving PHP files.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
