[Redmine 1.2.3] WebRick OK but can't get apache/passenger working
Added by Laurent Vivier over 11 years ago
Hi there !
I'm seeking a little help after 2 days tinkering to recover a faulty Bitnami/Redmine appliance, I've started from scratch a Redmine server using a Scientific Linux 6.4 with the same components (Redmine, ruby, MySQL ...) version to hopefully maximize compatibility.
So far, everything works ok when starting with WebRick, thanks to the nice tutorials found here (redmine.org) and there but I've got no luck with apache/httpd (404 or 403).
Here's my rails info :
RAILS_ENV=production script/about About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.4.2 Rack version 1.1 Rails version 2.3.11 Active Record version 2.3.11 Active Resource version 2.3.11 Action Mailer version 2.3.11 Active Support version 2.3.11 Edge Rails revision unknown Application root /var/www/redmine Environment production Database adapter mysql Database schema version 20120422150750
cat /etc/httpd/conf.d/redmine.conf
# Loading Passenger LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.19 PassengerRuby /usr/local/bin/ruby <VirtualHost *:80> ServerName sksupport.softkinetic.com DocumentRoot /var/www/redmine/public <Directory /var/www/redmine/public> # This relaxes Apache security settings. AllowOverride all # MultiViews must be turned off. Options -MultiViews allow from all </Directory> ErrorLog "|/usr/sbin/rotatelogs /etc/httpd/logs/redmine-error.%Y-%m-%d.log 86400" CustomLog "|/usr/sbin/rotatelogs /etc/httpd/logs/redmine-access.%Y-%m-%d.log 86400" "%h %l %u %t %D \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" </VirtualHost>
I'm getting 404 or 403, basically It's a mess because the old config use /etc/apache2 and not /etc/httpd and I'm lacking folders like mods-available, mod-enabled under /etc/httpd.
Can someone give me a starting point ? Any help would be greatly appreciated !
Cheers,
Laurent
Replies (2)
RE: [Redmine 1.2.3] WebRick OK but can't get apache/passenger working
-
Added by Mischa The Evil over 11 years ago
What's in your Redmine logs? Are the Redmine files permissions correct?
RE: [Redmine 1.2.3] WebRick OK but can't get apache/passenger working
-
Added by Laurent Vivier over 11 years ago
Hi !
Thanks for your reply.
So basically /var/www/redmine/log/production.log don't change when I switch to httpd, only get filled when HTTP queries are answered by Webrick.
Here's /var/log/httpd/error.log after and restart of httpd service :
[Tue Oct 01 10:50:45 2013] [notice] caught SIGTERM, shutting down [Tue Oct 01 10:50:45 2013] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0 [Tue Oct 01 10:50:45 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [ 2013-10-01 10:50:45.4246 20784/7f8de3a6a720 agents/Watchdog/Main.cpp:450 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => 'ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.19', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '20781', 'web_server_type' => 'apache', 'web_server_worker_gid' => '48', 'web_server_worker_uid' => '48' } [ 2013-10-01 10:50:45.4363 20787/7f5657a34720 agents/HelperAgent/Main.cpp:602 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.20781/generation-0/request [ 2013-10-01 10:50:45.4440 20792/7ff9bc1f17e0 agents/LoggingAgent/Main.cpp:318 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.20781/generation-0/logging [ 2013-10-01 10:50:45.4443 20784/7f8de3a6a720 agents/Watchdog/Main.cpp:631 ]: All Phusion Passenger agents started! [Tue Oct 01 10:50:45 2013] [notice] Digest: generating secret for digest authentication ... [Tue Oct 01 10:50:45 2013] [notice] Digest: done [ 2013-10-01 10:50:45.5044 20808/7f91c24e8720 agents/Watchdog/Main.cpp:450 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => 'ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.19', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '20804', 'web_server_type' => 'apache', 'web_server_worker_gid' => '48', 'web_server_worker_uid' => '48' } [ 2013-10-01 10:50:45.5183 20811/7f0cb2635720 agents/HelperAgent/Main.cpp:602 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.20804/generation-0/request [ 2013-10-01 10:50:45.5255 20816/7f6d29b757e0 agents/LoggingAgent/Main.cpp:318 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.20804/generation-0/logging [ 2013-10-01 10:50:45.5258 20808/7f91c24e8720 agents/Watchdog/Main.cpp:631 ]: All Phusion Passenger agents started! [Tue Oct 01 10:50:45 2013] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/4.0.19 configured -- resuming normal operations [Tue Oct 01 10:50:48 2013] [error] [client 192.168.12.118] File does not exist: /var/www/redmine/login
The permissions are 755 apache:apache from /var/www/redmine, recusively.
Many thanks for your help :)
Laurent