Anything wrong with running PHP and Ruby on the same Apache server?

点点圈 提交于 2019-12-10 01:16:33

问题


We are trying to figure out the best way to distribute our applications among our available servers, which are few in number.

Assuming adequate RAM and CPU power, is there any reason we shouldn't run mod_php and mod_rails (Passenger) within the same Apache server? Would they clash or conflict somehow?


回答1:


There is little risk with running mod_php and mod_rails on the same Apache server.

In fact, Passenger won't affect Apache if it goes down so it is actually a good choice to use with Apache and mod_php. From the Passenger Architectural Overview:

It should be noted that the Ruby on Rails application does not run in the same address space as Apache. This differentiates Passenger from other application-server-inside-web-server software such as mod_php, mod_perl and mod_ruby. If the Rails application crashes or leak memory, it will have no effect on Apache. In fact, stability is one of our highest goals. Passenger is carefully designed and implemented so that Apache shouldn't crash because of Passenger.



来源:https://stackoverflow.com/questions/518613/anything-wrong-with-running-php-and-ruby-on-the-same-apache-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!