Я новичек в вопросе редмайна, руби, рельсов и т.д.
Вчера установил на CentOS редмайн. Через webrick все работает отлично, но вот с апачем не получается. Просмотрел все мануалы, howTo, статьи с первым трех страниц гугла по данному вопросу, но заставить работать редмайн через apache не вышло.
О системе и ПО:
ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]
Redmine 2.4.3
Rails 3.2.16
CentOS x86 6.5
mysql Ver 14.14 Distrib 5.1.71, for redhat-linux-gnu (i386) using readline 5.1
ruby-aware - don't know.
RAILS_ENV=production script/about
Environment:
Redmine version 2.4.3.stable
Ruby version 1.9.3-p484 (2013-11-22) [i686-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Filesystem
Redmine plugins:
no plugin installed
tail /etc/httpd/conf/httpd.confLoadModule passenger_module /usr/lib/ruby/gems/1.9.1/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/lib/ruby/gems/1.9.1/gems/passenger-4.0.37
PassengerDefaultRuby /usr/bin/ruby
</IfModule>
<Directory /var/www/vhosts/redmine>
RailsBaseURI /redmine
AllowOverride all
Options -MultiViews
</Directory>
cat /etc/httpd/conf.d/my.site.ru<VirtualHost *:80>
ServerName my.site.ru
ServerAdmin e@domen.ru
DocumentRoot /var/www/vhosts/redmine/public
#If you are using mod_fcgid and are going to upload files larger than
#131072 bytes you should consider adding the following line
#that allows to upload files up to 20 mb
MaxRequestLen 20971520
<Directory /var/www/vhosts/redmine/public>
Options Indexes ExecCGI FollowSymLinks -MultiViews
Order allow,deny
Allow from all
AllowOverride all
</Directory>
ErrorLog /var/log/httpd/redmine-error.log
LogLevel warn
CustomLog /var/log/httpd/redmine-access.log combined
RailsEnv production
</VirtualHost>
В логах вообще чистота, за исключением:
tail /var/log/httpd/error_log [ 2014-02-13 11:53:34.0885 12054/b7420b60 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.12050/generation-0/request
[ 2014-02-13 11:53:34.1024 12059/b6cdf980 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.12050/generation-0/logging
[ 2014-02-13 11:53:34.1181 12051/b7484970 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Thu Feb 13 11:53:34 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 13 11:53:34 2014] [notice] Digest: done
[ 2014-02-13 11:53:34.1791 12073/b741c970 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/gems/1.9.1/gems/passenger-4.0.37', 'passenger_version' => '4.0.37', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.37', 'web_server_pid' => '12071', 'web_server_type' => 'apache', 'web_server_worker_gid' => '48', 'web_server_worker_uid' => '48' }
[ 2014-02-13 11:53:34.1909 12076/b7417b60 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.12071/generation-0/request
[ 2014-02-13 11:53:34.1960 12081/b6ce5980 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.12071/generation-0/logging
[ 2014-02-13 11:53:34.1961 12073/b741c970 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Thu Feb 13 11:53:34 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 Phusion_Passenger/4.0.37 configured -- resuming normal operations
Но мне это ни о чем не говорит и на направление куда смотреть тоже не наводит.
Не могли бы вы направить меня к правильному мануалу, дать совет по настройке или помочь отыскать ошибку?
Буду очень признателен.