Rack legacy is a rack handler to help your run legacy code side-by-side on your rack server. Currently CGI and PHP is supported. Although this can be done with an Apache setup this is overkill for development environments. PHP support is enabled by running through the php-cgi executable.
Gemfile gem 'rack-legacy', '~> 1.0.0'
install gem install rack-legacy