Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redmine RailsBaseURI

Tags:

linux

redmine

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

like image 393
Chuck Avatar asked Jan 14 '13 10:01

Chuck


2 Answers

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

like image 145
MemLeak Avatar answered Oct 01 '22 05:10

MemLeak


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.

like image 31
Noah Avatar answered Oct 01 '22 05:10

Noah