Redmine RailsBaseURI

13,321

Solution 1

Partial solved with @favoretti 's advice:

#apt-get install libapache2-mod-passenger
#/etc/init.d/apache2 reload
Reloading web server config: apache2.

Means the errors are gone

Solution 2

I arrived due to googling "Invalid command 'RailsBaseURI'. There wasn't an answer for me here, but I later realized that this error was being caused by passenger not being enabled.

Assuming you have already installed it, you can enable passenger with sudo a2enmod passenger.

Share:
13,321
Chuck
Author by

Chuck

Updated on September 20, 2022

Comments

  • Chuck
    Chuck over 1 year

    I installed Redmine with this How-To http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_using_Debian_package

    ln -s /usr/share/redmine/public /var/www/redmine
    
    chown -R www-data:www-data /var/www/redmine
    echo "RailsBaseURI /redmine" > /etc/apache2/sites-available/redmine
    a2ensite redmine
    /etc/init.d/apache2 reload
    /etc/init.d/apache2 restart
    

    But I get following message restarting apache2.

    Syntax error on line 1 of /etc/apache2/sites-enabled/redmine:
    Invalid command 'RailsBaseURI', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    The Apache error log may have more information.
     failed!
    

    Best wishes

    • favoretti
      favoretti over 11 years
      Can you show content of your /etc/apache2/sites-available/redmine?
    • Chuck
      Chuck over 11 years
      content: RailsBaseURI /redmine
    • favoretti
      favoretti over 11 years
      Hmm, and is your mod_passenger also enabled? Try something in lines of a2enmod passenger or a2enmod mod_passenger (depends on your distro).
    • Chuck
      Chuck over 11 years
      hm, same error again: Invalid command 'RailBaseURI', perhaps missspelled or defined..