# Integrate with php-script

**URL:** <https://www.ruby-forum.com/t/integrate-with-php-script/61115>\
**Category:** Rails\
**Created:** [May 20, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/integrate-with-php-script/61115 "2006-05-20T12:05:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [May 20, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/integrate-with-php-script/61115/1 "2006-05-20T12:05:51Z")

</div>

I have built a webshop in rails, now it’s time for invoice handling  
through a third party. The communication will be done by xml-rpc. The  
built in ruby xml-rpc doesnt seem to be compatible with the third party  
so I have to use a special php-script (provided by the third party) that  
will handle the interaction with them. Where on the server should/can I  
put the script? I would prefer to have it in railsapp/app or  
railsapp/public, but that doesnt seem to work.

Rails 1.1  
Lighttpd  
SCGI

---

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [May 21, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/integrate-with-php-script/61115/2 "2006-05-21T20:03:40Z")

</div>

sorry… this issue is really important to me. I’m therefore going to be  
rude and bump up this thread.

// Daniel

---

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [May 21, 2006, 8:42pm UTC](https://www.ruby-forum.com/t/integrate-with-php-script/61115/3 "2006-05-21T20:42:26Z")

</div>

Daniel wrote:

> SCGI

You’ll need to configure Lighttpd for php. There’s an example config  
here:  
[http://www.jerrett.net/entry/lighttpd\_rails\_and\_php](http://www.jerrett.net/entry/lighttpd_rails_and_php)

You should be able to put the script anywhere under railsapp/public.

---

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [June 6, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/integrate-with-php-script/61115/4 "2006-06-06T12:51:50Z")

</div>

Or have a look at this:

[http://bitrayed.blogspot.com/2006/05/apache2-on-debian-stable-with-rails.html](http://bitrayed.blogspot.com/2006/05/apache2-on-debian-stable-with-rails.html)
