Bonjour
En pleine découverte de Passenger j’ai voulu configurer un serveur
intranet
pour non plus une application (pour laquelle la configuration était
impeccable) mais deux (pour au futur 4 applications, voire plus)
Mon adresse ip intranet est à 192.168.0.3
mon fichier hosts n’est pas modifié
Mon virtualhost dans etc/apache2/apache2.conf
<VirtualHost 192.168.0.3:80>
DocumentRoot /home/serveurweb/rails/
RailsBaseURI /todos
RailsBaseURI /ibnsina
RailsEnv development
Il existe bien sur deux liens symboliques var/www/todos et
/var/www/ibnsina
pointant vers les dossiers public des applications respectives,
Hors en utilisant l’adresse 192.168.0.3/ j’ai la liste des liens
symboliques, mais en cliquant sur chaque lien vers une applications j’ai
une
erreur 500 Internal Server Error
L’error log d’apache est lÃ
[Sat Jan 17 00:15:39 2009] [notice] Apache/2.2.9 (Ubuntu)
PHP/5.2.6-2ubuntu4
with Suhosin-Patch Phusion_Passenger/2.0.6 configured – resuming normal
operations
*** Exception Errno::ENOENT in spawn manager (No such file or directory
/home/serveurweb/rails/config/environment.rb) (process 6372):
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/application.rb:51:in
read' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/application.rb:51:in
detect_framework_version’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:193:in
spawn_rails_application' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:126:in
spawn_application’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:251:in
handle_spawn_application' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in
send’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in
main_loop' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in
start_synchronously’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-spawn-server:46
*** Exception Errno::ENOENT in spawn manager (No such file or directory
/home/serveurweb/rails/config/environment.rb) (process 6385):
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/application.rb:51:in
read' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/application.rb:51:in
detect_framework_version’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:193:in
spawn_rails_application' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:126:in
spawn_application’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:251:in
handle_spawn_application' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in
send’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in
main_loop' from /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in
start_synchronously’
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-spawn-server:46
[Sat Jan 17 00:15:47 2009] [error] [client 192.168.0.10] *** Unexpected
error in Passenger: Cannot spawn application ‘/home/serveurweb/rails’:
The
spawn server has exited unexpectedly., referer: http://192.168.0.3/
Je tourne un peu en rond, alotrs si qqu’un a une petite idée
Merci
NG