after the installation of redmine, it is always very slow. redmin 2.1 this modification can solve the problem.
http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine
this is an aticle for older version of redmine.
simply do this after the installation:(suppose you install in /opt/redmine-2.1/)
cp configuration.yml.example configuration.yml
vi /etc/apache2/site-enable/redmine
add :
RailsEnv production
RailsBaseURI /redmine
http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine
this is an aticle for older version of redmine.
simply do this after the installation:(suppose you install in /opt/redmine-2.1/)
cp configuration.yml.example configuration.yml
vi /etc/apache2/site-enable/redmine
add :
RailsEnv production
RailsBaseURI /redmine
normally this works.
There is another article talk about this:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu
My own configuration is :
There is another article talk about this:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu
/etc/apache2/sites-enabled/redmine #the two parameter is for private server and do not close the idle process to get a more quick response. PassengerPoolIdleTime 0 PassengerMaxPreloaderIdleTime 0and /opt/redmine-2.1/config/database.ymlDocumentRoot "/opt/redmine-2.1/public" ServerName redmine.addepi.fr ServerAdmin webmaster@addepi.fr CustomLog /opt/redmine-2.1/log/access.log combined ErrorLog /opt/redmine-2.1/log/error.log Options +FollowSymLinks +ExecCGI -MultiViews PassengerResolveSymlinksinDocumentRoot on AllowOverride None RailsEnv production RailsBaseURI /redmine RewriteEngine On RewriteBase "/" RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$ RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
production: adapter: mysql database: redmine host: localhost username: redmine password: xxxx encoding: utf8and you need to set the user name who run on the mod_passenger in /etc/apache2/mods-available/passenger.conf:
This user is related to the permission of redmine, you need to set the owner www-data to “files”, “log”, “tmp” as this user assume to run the redmine.(in the installation path: for example, /opt/redmine-2.1/)PassengerDefaultUser www-data PassengerRoot /usr PassengerRuby /usr/bin/ruby
评论
发表评论