On a remote server running Debian and running a web service written in php5;
At the time of transition from php to ruby on rails, I would like to operate simultaneously on the Apache php applications and ruby on rails applications.
I know that it is possible to implement using passenger, but I'm having trouble installing it. So, in the terminal I'm doing:
passenger-install-apache2-module
During installation, the following messages:
1)WARNING: Apache doesn't seem to be compiled with the 'prefork', 'worker' or 'event' MPM
Phusion Passenger has only been tested on Apache with the 'prefork', the 'worker' and the 'event' MPM. Your Apache installation is compiled with
the 'itk' MPM. We recommend you to abort this installer and to recompile Apache with either the 'prefork', the 'worker' or the 'event' MPM.
After: sudo apt-get install apache2-mpm-prefork
- Apache stops working
If I continue the installation, the following problem arises:
2) Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module /home/user/.rvm/gems/ruby-2.1.3/gems/passenger-4.0.53/buildout/apache2/mod_passenger.so PassengerRoot /home/user/.rvm/gems/ruby-2.1.3/gems/passenger-4.0.53 PassengerDefaultRuby /home/user/.rvm/gems/ruby-2.1.3/wrappers/ruby
But if I'll put these lines in the config file, php stops working.
Who can tell how to solve this problem?
[
Hmm., Difficulties arose.
sudo apt-get install libapache2-mod-passenger
worked well
But, I still don't understand how to configure apache for both php and ruby on rails.
Could you illustrate examples of settings for httpd,sites-avaliable,mods-avaliable;
For available anywhere on the hard disk Ruby applications;
I hope it does not go beyond this issue.
]