# PunBB integration

**URL:** <https://www.ruby-forum.com/t/punbb-integration/141296>\
**Category:** Rails\
**Created:** [June 24, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296 "2008-06-24T13:18:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/1 "2008-06-24T13:18:28Z")

</div>

Hi,

I’m new to ruby and rails and, after some inital success, I’ve hit a  
bit of a roadblock. I’m setting up a community-based site which will  
include a forum. I’m thinking of using PunBB for this but I dont  
understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Ideally, I’d like the user to be able to click the ‘forum’ link and  
then for the punBB code to display within the page’s view.

Can anybody tell me if this is possible? Any help would be  
appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 1:40pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/2 "2008-06-24T13:40:44Z")

</div>

GearÃ³id O’Ceallaigh wrote:

> Hi,
> 
> I’m new to ruby and rails and, after some inital success, I’ve hit a  
> bit of a roadblock. I’m setting up a community-based site which will  
> include a forum. I’m thinking of using PunBB for this but I dont  
> understand just how I can get a php app running within my rails app.
> 
> Like how can I get php code to run on the rails server???
> 
> Ideally, I’d like the user to be able to click the ‘forum’ link and  
> then for the punBB code to display within the page’s view.
> 
> Can anybody tell me if this is possible? Any help would be  
> appreciated, thanks.

well y u want to integrate punbb u can integrate caboo(beast) forum or  
eldorado or rforum which is built on rails…thats a better  
option…unless there is some specific reason y u want to use punbb

Thanks

Dhaval P.  
Software Engineer

> **[RailsHouse : Ruby on Rails Development & Consulting, Waterloo, Canada](https://railshouse.com)**
>
> RailsHouse is Waterloo, Ontario based Ruby on Rails Consultancy firm which provides RoR Development, Migration, Staffing, Maintenace and Support Services

sales(AT)railshouse(DOT)com

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/3 "2008-06-24T13:59:31Z")

</div>

On 24 Jun 2008, at 12:13, Gearóid O’Ceallaigh wrote:

> Hi,
> 
> I’m new to ruby and rails and, after some inital success, I’ve hit a  
> bit of a roadblock. I’m setting up a community-based site which will  
> include a forum. I’m thinking of using PunBB for this but I dont  
> understand just how I can get a php app running within my rails app.
> 
> Like how can I get php code to run on the rails server???

Well mongrel etc… won’t serve php for you, but it’s not hard with  
apache, nginx etc… to have one vhost pointing at your rails app and  
another at your php app.

Fred

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/4 "2008-06-24T15:26:26Z")

</div>

On Jun 24, 12:58 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> On 24 Jun 2008, at 12:13, Gearóid O’Ceallaigh wrote:

> Well mongrel etc… won’t serve php for you, but it’s not hard with  
> apache, nginx etc… to have one vhost pointing at your rails app and  
> another at your php app.
> 
> Fred

I was thinking this way myself. However can I call pages to be  
included on a page which are located on a seperate server? For  
example, imagine my rails app held stuff like venue information but  
then my forums was hosted on another server (or port when working  
locally). So could I use something like this:

 \<%= yield :layout %\> 

where yield calls my php boards?

thanks for the help btw

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/5 "2008-06-24T15:42:53Z")

</div>

> > \<%= yield :layout %\>

maybe you can use an iframe instead of the div  
then this could look something like

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/6 "2008-06-24T15:32:54Z")

</div>

On 24 Jun 2008, at 14:25, Gearóid O’Ceallaigh wrote:

> > another at your php app.
> 
> \<%= yield :layout %\>

Not out of the box you can’t. I suppose you could manually invoke the  
php executable, but you might find you have to do quite a lot of  
fiddling around in order to setup the environment (all the stuff that  
apache would normally do for you).

Fred

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/7 "2008-06-24T16:14:38Z")

</div>

Crap.

See, I’d have little issue with using Beast only I’m finding it  
particularly difficult to install. I’ve gone through all the usual  
steps suggested but get error 500 when trying to view it. Guess I’ll  
just give it another shot…

On Jun 24, 2:32 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![GearSSS\_id\_OSCealla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Post date:** [June 24, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296/8 "2008-06-24T23:57:52Z")

</div>

Check your log/development.log for any errors.

–  
Appreciated my help?  
Recommend me on Working With Rails  
[http://workingwithrails.com/person/11030-ryan-bigg](http://workingwithrails.com/person/11030-ryan-bigg)
