RedMine doesn't work after upgrading apache & php
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 188.8.131.52] 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?
How was your redmine served before the upgrade, with passenger?
Yes! I was used passenger. version 2.2.11.
Try removing the file
.htaccess in the
public/ directory of your redmine installation.
I'm getting the list of files of public directory.
Then your passenger is misconfigured, but I'll let you read that up from the passenger documentation :-)
What can you suggest? Which part is non-working? Apache-Passenger bridge?
But it is normal that dispatch.cgi doesn't exist?
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.
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?
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.
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/$
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
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