RubyFlow The Ruby and Rails community linklog

rack-legacy: A rack handler to run PHP/CGI alongside a Ruby/Rails App

A new rack module for running old legacy PHP/CGI code alongside your new shiny Ruby/Rails code. Ideal for development environments where you don’t want to install and setup and full Apache stack just to hack on a bit of code. A simple use Rack::Legacy::Php, 'public' and your Rack-based app will now be executing PHP out of your public directory and all you have to do is rackup your app. For Rails it is config.middleware.use Rack::Legacy::Php, Rails.public_path and now you can just ./script/server and you are done.

Comments

I didn’t see where this addresses the single-signon problem? Many legacy php application require valid authentication credentials for a valid session.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in