A
A
Alexander Kunin2014-02-13 12:01:50
Apache HTTP Server
Alexander Kunin, 2014-02-13 12:01:50

CentOS, Apache, Passenger + Redmine: Why does Apache default page open?

I'm new to redmine, ruby, rails, etc.
Installed redmine on CentOS yesterday. Through webrick everything works fine, but with Apache it doesn't work. I looked through all the manuals, howTo, articles from the first three pages of Google on this issue, but it did not work out to make redmine work through apache.
About the system and software:

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.conf
LoadModule 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 [email protected]
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>

The logs are generally clean, except for:
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

But this doesn’t tell me anything, and doesn’t point me in the direction where to look either.
Could you point me to the correct manual, give me setup advice, or help me find a bug?
I would be very grateful.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question