Redmine: Difference between revisions

From Alpine Linux
m (added note about ruby version)
No edit summary
Line 1: Line 1:
NOTE: Ruby 1.8.7_p299 is required, which as of 11/18/2010 is still in edge. <br />
'''Redmine in Alpine Linux'''
 
''Note:'' We need to install using tyhe edge repositories.
 
Change the repositorie to use the edge.
 
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
 
Installing all we need
 
apk add lighttpd fcgi mysql mysql-dev php rubygems
 
gem install rails -v=2.3.5
gem install mysql
 
Configuring 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 remine database
 
mysql -u root -p


apk add lighttpd fcgi rubygems mysql mysql-dev php<br />
gem install rails -v=2.3.5<br />
gem install mysql<br />
mysql commands:<br />
  create database redmine character set utf8;
  create database redmine character set utf8;
  grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'Secur3P@ass';
  grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'Secur3P@ass';
  flush privileges;
  flush privileges;
mkdir /usr/share/webapps/redmine<br />
exit
copy over redmine-1.0.3.tar.gz contents into folder<br />
 
chown -R lighttpd:lighttpd /usr/share/webapps/redmine<br />
Edit ighttpd " include "mod_fastcgi.conf"" and start
edit config/database.yml (copied from database.yml.example) production section to match above mysql settings<br />
 
cd /usr/share/webapps/redmine<br />
nano +46 /etc/lighttpd/lighttpd.conf
rake generate_session_store<br />
 
RAILS_ENV=production rake db:migrate<br />
Start the server and add to the boot
RAILS_ENV=production rake redmine:load_default_data (keep default language of en)<br />
 
/etc/init.d/lighttpd start && rc-update add lighttpd
 
Create 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 script/server webrick -e production
  ruby script/server webrick -e production
browse to localhost:3000
 
user admin:admin
Now Browse to '''localhost:3000'''
Edit lighttpd.conf and uncomment "include mod_fcgi.conf"<br />
User '''admin''':'''admin'''
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<br />
 
Restart lighttpd. <br />
 
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
 
Restart lighttpd.

Revision as of 09:41, 19 November 2010

Redmine in Alpine Linux

Note: We need to install using tyhe edge repositories.

Change the repositorie to use the edge.

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

Installing all we need

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

Configuring 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 remine 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;
exit

Edit ighttpd " include "mod_fastcgi.conf"" and start

nano +46 /etc/lighttpd/lighttpd.conf

Start the server and add to the boot

/etc/init.d/lighttpd start && rc-update add lighttpd

Create 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 script/server webrick -e production

Now Browse to localhost:3000 User admin:admin


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

Restart lighttpd.