# XAMPP With Rails?

**URL:** <https://www.ruby-forum.com/t/xampp-with-rails/128611>\
**Category:** Deployment\
**Created:** [February 9, 2008, 10:32am UTC](https://www.ruby-forum.com/t/xampp-with-rails/128611 "2008-02-09T10:32:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriscole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5fc32e/32.png) [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Post date:** [February 9, 2008, 10:32am UTC](https://www.ruby-forum.com/t/xampp-with-rails/128611/1 "2008-02-09T10:32:04Z")

</div>

Hey,

I use XAMPP on a USB memory stick at the moment to do all my coding in  
PHP/MySQL on a portable Apache server. Is it possible to integrate  
rails into this setup, so when the server encouters a PHP file it runs  
it, and when it encounters a .rhtml file it runs that, etc.

Ideally I don’t want to lose any of the functionality I have at the  
moment.

---

<div class="post-metadata">

**Author:** ![chriscole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5fc32e/32.png) [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Post date:** [February 11, 2008, 4:58am UTC](https://www.ruby-forum.com/t/xampp-with-rails/128611/2 "2008-02-11T04:58:55Z")

</div>

On Feb 9, 2008 2:32 AM, Chris Connelly  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

Hi Chris -

I run MediaWiki (php) alongside my rails app just fine. They’re not  
integrated - i.e. they don’t share the db or session. The way I have it  
setup is using some routing conditions on Apache. I have a “standard”  
Apache+Mongrel conf file with this part added in for the php site:

RewriteCond %{DOCUMENT\_ROOT}/%{REQUEST\_FILENAME} .php  
RewriteRule ^(._)$ $1 [QSA,L]  
RewriteCond %{DOCUMENT\_ROOT}/%{REQUEST\_FILENAME} !-f  
RewriteCond %{DOCUMENT\_ROOT}/%{REQUEST\_FILENAME}/index.php -f  
RewriteRule ^(._)$ $1/index.php [QSA,L]

Basically those rules kick into place before the Rails requests get sent  
to  
mongrel.

So - it is possible to run them along side each other.

Regards,

Dave  
[http://www.silverrack.com](http://www.silverrack.com)  
Affordable VPS Hosting
