Find the answer to your Linux question:
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 ...
  1. #1
    Just 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
    Code:
    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!
    the apache log

    Code:
    [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/mods-available/passenger.conf

    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/apache2.conf (at the bottom of the con file)

    Code:
    Include /etc/apache2/mods-available/passenger.conf
    vi /etc/apache2/sites-available/redmine (instead of default)

    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

    Code:
    ruby script/server webrick -e production
    In the browser I put mysite:3000 and works
    Hopefully someone can lend me a hand.

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    Syntax error on line 6 of /etc/apache2/sites-enabled/redmine:
    What does that line in sites-enabled show? You posted sites-available but no sites-enabled?

    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
    Does it exist?

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2
    Code:
    /etc/apache2/sites-enabled# ll
    total 8
    -
    -
    lrwxrwxrwx 1 root root   36 2011-09-30 08:56 redmine -> /etc/apache2/sites-available/redmine
    Quote Originally Posted by yancek View Post
    What does that line in sites-enabled show? You posted sites-available but no sites-enabled?



    Does it exist?
    No it doesn't thats I don't understand ruby so much... spawn server create it self or I have to add someting??

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    Syntax error on line 6 of /etc/apache2/sites-enabled/redmine:
    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.

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...