Project

General

Profile

CentOS, apache, passenger + redmine. How to make it works? (Apache shows default page)

Added by Aleksandr Kunin over 10 years ago

Hi, everybody,

I'm completely new in redmine and ruby and rails and etc.
Yesterday I tried to install and setup redmine. So everything went fine and in webrick on port 3000 it started an worked.
Next step - apache.
I've read all manuals, HowTo's and so on on english and russian from first 3 pages of goolge and I don't know what I doing wrong.

  1. ruby -v
    ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]

Redmine 2.4.3
Rails 3.2.16
CentOS 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
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>

from logs I only find this in httpd error log:
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

And it says nothing for me.

Can somebody guide me to right manual or give me advice or help me to find mistake/error?
I'll be very appreciate.


Replies (1)

RE: CentOS, apache, passenger + redmine. How to make it works? (Apache shows default page) - Added by Aleksandr Kunin over 10 years ago

I'm sorry, I made typo in virtual host config filename and it wasn't including.

    (1-1/1)