XAMPP With Rails?

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.

On Feb 9, 2008 2:32 AM, Chris Connelly
[email protected]
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
Affordable VPS Hosting