RedMine doesn't work after upgrading apache & php

Added by Tigran Tokmajyan over 9 years ago

Hello,

Recently I have upgraded my Apache & PHP on my Centos. After that my redmine application broke down. In logs I have this error
[Thu Aug 12 09:49:09 2010] [error] [client 110.36.31.120] script not found or unable to stat: /home/redmine/public_html/public/dispatch.cgi

After that I have checked public folder, and see that dispatch.cgi doesn't exist. I have renamed dispatch.cgi-example to dispatch.cgi. And receive @Application error

Rails application failed to start properly@

What you can suggest me?

Replies (13)

RE: RedMine doesn't work after upgrading apache & php - Added by Felix Schäfer over 9 years ago

How was your redmine served before the upgrade, with passenger?

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan over 9 years ago

Yes! I was used passenger. version 2.2.11.

RE: RedMine doesn't work after upgrading apache & php - Added by Felix Schäfer over 9 years ago

Try removing the file .htaccess in the public/ directory of your redmine installation.

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan over 9 years ago

I'm getting the list of files of public directory.

RE: RedMine doesn't work after upgrading apache & php - Added by Felix Schäfer over 9 years ago

Then your passenger is misconfigured, but I'll let you read that up from the passenger documentation :-)

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan over 9 years ago

What can you suggest? Which part is non-working? Apache-Passenger bridge?

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan over 9 years ago

But it is normal that dispatch.cgi doesn't exist?

RE: RedMine doesn't work after upgrading apache & php - Added by Felix Schäfer over 9 years ago

Passenger doesn't rely on cgi, and it's normal you don't have a dispatch.cgi. It might be that you need to reinstall passenger becaus of the apache upgrade, maybe have a look at your apache error.log.

As I said, your passenger is misconfigured, make sure it is loaded in apache and configured properly.

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan about 9 years ago

I have this error in my apache error_log.

Could not start the spawn server: /usr/local/lib/ruby: Permission denied (13)

I have checked that directory. I have set 0777 permission.. I have also checked that Apache running on nobody.nobody, nothing works...

What this can be?

RE: RedMine doesn't work after upgrading apache & php - Added by Felix Schäfer about 9 years ago

Do you have selinux enabled? Anyway, this seems to be a problem with your apache setup, I'd suggest you seek advice in your distro's help channels.

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan about 9 years ago

I have not selinux enabled.. selinux disabled... Apache is working normally for PHP... I have correct settings in httpd.conf for passenger...

Here is connection for passenger in Apache.
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/$
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/local/lib/ruby

RE: RedMine doesn't work after upgrading apache & php - Added by Felix Schäfer about 9 years ago

Tigran Tokmajyan wrote:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/$
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/local/lib/ruby

The first line doesn't look right to me, I think it should reference a .so file, my config at least points to mod_passenger.so.

RE: RedMine doesn't work after upgrading apache & php - Added by Tigran Tokmajyan about 9 years ago

oh sorry.. i have not copied whole line.. Damn Putty.
Here is correct line: LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so

(1-13/13)