Results 1 to 4 of 4
Hi! This is my first post ...
I'm trying to get this working on Ubuntu 11.04. And I'm having troubles with passenger. But I'm not having the same error as ...
- 10-03-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 2
Redmine on Ubuntu 11.04: passenger Error
Hi! This is my first post ...
I'm trying to get this working on Ubuntu 11.04. And I'm having troubles with passenger. But I'm not having the same error as the other..
the error
the apache logCode:service apache2 restart Syntax error on line 6 of /etc/apache2/sites-enabled/redmine: Invalid command 'PassengerDefaultUser', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information. ...fail!
vi /etc/apache2/mods-available/passenger.confCode:[Fri Sep 30 10:42:16 2011] [error] *** Passenger could not be initialized because of this error: The Passenger spawn server script, '/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/passenger-spawn-server', does not exist. Please check whether the 'PassengerRoot' option is specified correctly.
vi /etc/apache2/apache2.conf (at the bottom of the con file)Code:<IfModule mod_passenger.c> PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9 PassengerRuby /usr/bin/ruby1.8 PassengerDefaultUser www-data </IfModule>
vi /etc/apache2/sites-available/redmine (instead of default)Code:Include /etc/apache2/mods-available/passenger.conf
Code:<VirtualHost *:80> ServerName redmine DocumentRoot /var/www/redmine/public PassengerDefaultUser www-data RailsEnv production RailsBaseURI /redmine SetEnv X_DEBIAN_SITEID "default" <Directory /var/www/redmine/public> Order allow,deny Allow from all </Directory> </VirtualHost>Because this is my first post I can't put the url of site I used to make the instalation.
Running the test works.
you go to cd /var/www/redmine
and by doing
In the browser I put mysite:3000 and worksCode:ruby script/server webrick -e production
Hopefully someone can lend me a hand.
- 10-03-2011 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
What does that line in sites-enabled show? You posted sites-available but no sites-enabled?Syntax error on line 6 of /etc/apache2/sites-enabled/redmine:
Does it exist?The Passenger spawn server script, '/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/passenger-spawn-server', does not exist
- 10-03-2011 #3Just Joined!
- Join Date
- Oct 2011
- Posts
- 2
- 10-03-2011 #4Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
In your original post, you have the above error. What I asked is what does line 6 in the file /etc/apache2/sites-enabled actually say? It looks like it is just a link to sites-available. Check line 6 in gedit and see what line 6 says.Syntax error on line 6 of /etc/apache2/sites-enabled/redmine:
You might go back to the site you got the instructions from and go over it again. Your errors show Passenger-Root option is not specified correctly.


Reply With Quote
