Aynı Apache sunucu üzerinde PHP ve Ruby ile çalışan yanlış bir şey?

1 Cevap php

Biz sayıca az bizim mevcut sunucular, arasında bizim uygulamaları dağıtmak için en iyi şekilde anlamaya çalışıyoruz.

Biz aynı Apache sunucu içinde mod_php ve mod_rails (Yolcu) çalıştırmak gerekir herhangi bir nedenle, yeterli RAM ve CPU gücü yoktur varsayarsak? Onlar bir şekilde çatışma veya çatışma misiniz?

1 Cevap

Aynı Apache sunucu üzerinde mod_php'yi ve mod_rails çalışan az riski vardır.

Aşağı giderse Aslında, Yolcu yüzden aslında Apache ve mod_php ile kullanmak için iyi bir seçimdir Apache etkilemez. Dan 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.