Can I start LAMP and Rails from the same Apache instance?

We have a RedHat box with Apache2, PHP5 and MySQL 5 for most of our development. We now have a Rails client, and we need to configure the Rails application on the same server. Can we install Ruby and Rails with the same Apache, or should we avoid this? Why or why not? Is it possible to direct subdomains to PHP or Ruby in separate V-host definitions?

+6
ruby-on-rails apache apache2 lamp
source share
2 answers

Yes, you can configure your virtual hosts on Rails, PHP or something else with the appropriate configuration. The details are largely dependent on how you connect to Rails, but as a rule, you should configure a single-purpose Apache server to work with virtual hosts.

+3
source share

Yes - install the passenger , then you can configure your sites through your apache conf files. Passenger documents contain everything you need to know!

+2
source share

All Articles