Difference between revisions of "Redmine"

From Alpine Linux
Jump to: navigation, search
(update to use lighttpd template)
Line 1: Line 1:
'''Redmine in Alpine Linux'''
''Note:'' We need to install using tyhe edge repositories.
''Note:'' We need to install using the edge repositories.
Change the repositorie to use the edge.
Change to the edge repository:
  mv /etc/apk/repositories /etc/apk/repositories.old
  mv /etc/apk/repositories /etc/apk/repositories.old
Line 13: Line 12:
Install services
Install services
{{:Setting Up Lighttpd With FastCGI}}
  apk add lighttpd fcgi mysql mysql-dev php rubygems
Install extra packages:
  apk add fcgi mysql mysql-dev rubygems
  gem install rails -v=2.3.5
  gem install rails -v=2.3.5
Line 33: Line 33:
  flush privileges;
  flush privileges;
Edit lighttpd
Note: To include "mod_fastcgi.conf", uncomment line 46
nano +46 /etc/lighttpd/lighttpd.conf
Start the server and add to the boot
/etc/init.d/lighttpd start && rc-update add lighttpd
Create redmine folder
Create redmine folder

Revision as of 23:36, 2 December 2010

Note: We need to install using the edge repositories.

Change to the edge repository:

mv /etc/apk/repositories /etc/apk/repositories.old
echo -e "http://dl-3.alpinelinux.org/alpine/edge/main/" >> /etc/apk/repositories 

Update and upgrade

apk -U upgrade

Install services For installing the additional packages first activate community packages:

vi /etc/apk/repositories

Uncomment the following:


Update the packagelist:

apk update

Install the additional packages:

apk add lighttpd php7-common php7-iconv php7-json php7-gd php7-curl php7-xml php7-mysqli php7-imap php7-cgi fcgi php7-pdo php7-pdo_mysql php7-soap php7-xmlrpc php7-posix php7-mcrypt php7-gettext php7-ldap php7-ctype php7-dom

Configure Lighttpd

Edit lighttpd.conf

vi /etc/lighttpd/lighttpd.conf

Uncomment line:

include "mod_fastcgi.conf"

Edit mod_fastcgi.conf

vi /etc/lighttpd/mod_fastcgi.conf

Edit the section:




Start lighttpd service and add to needed runlevel

rc-service lighttpd start && rc-update add lighttpd default

Install extra packages:

apk add fcgi mysql mysql-dev rubygems
gem install rails -v=2.3.5
gem install mysql

Configure MySql

/usr/bin/mysql_install_db --user=mysql
/etc/init.d/mysql start && rc-update add mysql default
/usr/bin/mysqladmin -u root password 'password'

Create the redmine database

mysql -u root -p
create database redmine character set utf8;
grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'Secur3P@ass';
flush privileges;

Create redmine folder

mkdir -p /usr/share/webapps/redmine

Download, unpack and move Redmine

cd /tmp/
wget http://rubyforge.org/frs/download.php/73140/redmine-1.0.3.tar.gz
tar zxvf redmine-1.0.3.tar.gz
mv redmine-1.0.3/* /usr/share/webapps/redmine/

Change permissions

chown -R lighttpd:lighttpd /usr/share/webapps/redmine

Edit the database config file and put the mysql password

cp /usr/share/webapps/redmine/config/database.yml.example /usr/share/webapps/redmine/config/database.yml
nano /usr/share/webapps/redmine/config/database.yml 

Some more steps

cd /usr/share/webapps/redmine
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data 

Note: keep default language of en

Start the Redmin

ruby /usr/share/webapps/redmine/script/server webrick -e production

Now you can browse to localhost:3000 an log using admin user and admin password.

Note: Follow http://www.redmine.org/boards/2/topics/4458 adding the virtual host config to /etc/lighttpd/redmine.conf, and add redmine.conf to the includes in /etc/lighttpd/lighttpd.conf

Then restart lighttpd.