Redmine RailsBaseURI

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 the following apache2 restart message.

 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

+4
source share
3 answers

Partially resolved by @favoretti's advice:

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

So the errors are gone

+15
source

I came because of googling "Invalid command" RailsBaseURI. There was no answer for me, but later I realized that this error was caused by the fact that the passenger is not turned on.

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

+2
source

You must check the passenger configuration.

1.wheater link.conf and passenger.load in / etc / apache 2 / mods-enabled

 /etc/apache2/mods-enabled# ls passenger.* passenger.conf passenger.load 

2. Check your configuration files: passenger .conf / passenger .load

passenger.conf:

 <IfModule mod_passenger.c> PassengerRoot /home/hao/.rvm/gems/ ruby-1.9.3-p448@rails4.0 /gems/passenger-4.0.14 PassengerDefaultRuby /home/hao/.rvm/wrappers/ ruby-1.9.3-p448@rails4.0 /ruby </IfModule> 

passenger.load:

 LoadModule passenger_module /home/hao/.rvm/gems/ ruby-1.9.3-p448@rails4.0 /gems/passenger-4.0.14/buildout/apache2/mod_passenger.so 

3. Passenger rides, according to an official document

 Restart your web server and run: passenger-memory-stats 
0
source

All Articles