Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails + PHP | How To Pair PHP AND Ruby On The Same Webserver?

Is it possible to pair PHP and Ruby on Rails on the same server? Although I'd be using RoR More, I'd still like to have PHP, is this possible? And are there any major drawbacks?

like image 723
Necro. Avatar asked Mar 03 '26 17:03

Necro.


1 Answers

Yes, it is definitely possible. You can enable / set up both mod_php and mod_passenger. It will depend on your OS how to do this. Basically, you need to enable both modules, then have separate virtual hosts: one for PHP and one for Ruby.

If you let me know your OS or more about what you want to achieve I can make this answer more detailed.

The drawback is increased memory usage, and possibly more complex security needs by enabling PHP. But it's not a huge drawback.

like image 119
Ivan Avatar answered Mar 05 '26 05:03

Ivan