💾 Archived View for gmi.noulin.net › mobileNews › 2118.gmi captured on 2023-06-16 at 20:24:15. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
2010-06-13 11:37:55
Short instructions to install redmine at url : http://localhost/remine/
1 - Install redmine with apt
2 - Create files
3 - Test with Ruby's webserver
4 - Configure apache2
sudo apt-get install redmine redmine-mysql
sudo ln -s /usr/share/redmine/public /var/www/redmine
sudo vi /etc/redmine/database.yml
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: [password]
encoding: utf8
sudo vi /usr/share/redmine/public/dispatch.cgi
require File.dirname(__FILE__) + "/../config/environment" unless defined?
(RAILS_ROOT)
require "dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?
(dir) } if defined?(Apache::RubyRun)
Dispatcher.dispatch
sudo vi /usr/share/redmine/public/.htaccess
RewriteEngine On
RewriteBase /redmine
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
cd /usr/share/redmine/public
sudo rake db:migrate RAILS_ENV="production"
sudo rake redmine:load_default_data RAILS_ENV="production"
cd /usr/share/redmine/
sudo ruby script/server -e production
sudo a2enmod rewrite
sudo vi /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerName redmine.server.com
DocumentRoot /var/www
RailsBaseURI /redmine
ServerAdmin user@server.com
LogLevel warn
ErrorLog /var/log/apache2/redmine_error
CustomLog /var/log/apache2/redmine_access combined
<Directory /var/www/>
Options Indexes FollowSymLinks +ExecCGI -MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler cgi-script .py # tell Apache to handle every file with .py suffix as
a cgi program
</Directory>
<Directory /usr/share/redmine/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
sudo chmod 644 /etc/redmine/default/session.yml
sudo chmod 644 /etc/redmine/default/database.yml
sudo /etc/init.d/apache2 restart