Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

We have a RedHat box with Apache2, PHP5 and MySQL 5 for much of our development. Now, we have a Rails client, and we need to set up a Rails app on the same server. Can we install Ruby and the Rails framework with the same Apache, or should we avoid this? Why or Why not? Is it possible to direct subdomains to either PHP or Ruby in the individual V-host definitions?

like image 758
Sam McAfee Avatar asked Oct 09 '08 18:10

Sam McAfee


1 Answers

Yes, you can configure your virtual hosts to Rails, PHP, or anything else with the proper configuration. The details depend largely on how you are connecting to Rails, but generally however you would configure a single purpose Apache server should work for the virtual hosts.

like image 66
sock Avatar answered Oct 17 '22 07:10

sock