Download and install redmine 2.4.2 on Ubuntu 12.04 LTS
$ sudo cd /var/www
$ sudo wget http://www.redmine.org/releases/redmine-2.4.2.tar.gz
$ sudo tar zxvf redmine-2.4.2.tar.gz $ sudo mv redmine-2.4.2 project.example.com $ sudo cd project.example.com/config/ $ sudo cp database.yml.example database.yml $ sudo nano database.yml $ sudo cd /var/www/project.example.com
Installing dependencies:
Ruby 1.9.3:
$ sudo apt-get install ruby1.9.3
Install redmine
$ sudo gem install bundle $ sudo bundle install --without development test
Some errors during installation:
Error mysql2:
An error occurred while installing mysql2 (0.3.15), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.15'` succeeds before bundling.
Solution, install MySQL libraries:
$ sudo apt-get install mysql-client libmysqlclient-dev
$ sudo gem install mysql2 -v '0.3.15'
Error rmagick:
An error occurred while installing rmagick (2.13.2), and Bundler cannot continue. Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.
Solution, install magick libraries:
$ sudo apt-get install libmagickcore-dev libmagickwand-dev $ sudo gem install rmagick -v '2.13.2'
We continue with installation:
$ sudo bundle install --without development test $ sudo rake generate_secret_token $ sudo RAILS_ENV=production rake db:migrate $ sudo RAILS_ENV=production rake redmine:load_default_data $ sudo mkdir -p tmp tmp/pdf public/plugin_assets $ sudo chown -R 777 files log tmp public/plugin_assets $ sudo chmod -R 755 files log tmp public/plugin_assets
Webrick server
$ sudo ruby script/rails server webrick -e production
Apache con fcgid
$ sudo aptitude install libapache2-mod-fcgid $ sudo cd /var/www/project.example.com/public/ $ sudo mv dispatch.fcgi.example dispatch.fcgi $ sudo chmod 755 dispatch.fcgi $ sudo mv htaccess.fcgi.example .htaccess $ sudo nano /etc/apache2/sites-available/project.example.com
##$ sudo Proyectos <VirtualHost *:80> ServerAdmin support_mail ServerName project.example.com DocumentRoot /var/www/project.example.com/public <Directory /var/www/project.example.com/public> Options Indexes ExecCGI FollowSymLinks Order allow,deny Allow from all AllowOverride all </Directory> ErrorLog /var/log/apache2/proyectos_isarea_error.log $ sudo Possible values include: debug, info, notice, warn, error, crit, $ sudo alert, emerg. LogLevel warn CustomLog /var/log/apache2/proyectos_isarea_access.log combined ServerSignature On </VirtualHost>
$ sudo a2ensite project.example.com $ sudo service apache2 restart
Comentarios