redmine bitnami
Steps to install redmine in a VM:
1. Download the VM on the web: https://bitnami.com/stack/redmine/virtual-machine
2. Configuration to star the VM with virtualbox:
3. Create a backup of a database to export:
$ /installdir/mysql/bin/mysqldump -u root -p database_name > backup.sql
4. Change keyboard configuration:
sudo dpkg-reconfigure keyboard-configuration
Reboot the system.
5. Enable sshd for Ubuntu:
$ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
$ sudo start ssh
6. Restore the database:
Stop all servers and start only MySQL. Note that the installation directory could be different. This is the default installation directory for Virtual Machines and Cloud images:
$ sudo /opt/bitnami/ctlscript.sh stop
$ sudo /opt/bitnami/ctlscript.sh start mysql
Remove the previous database and create the new one. You can configure the database user password with a secure password.
$ mysql -u root -p
Password: ****
mysql> drop database bitnami_redmine;
mysql> create database bitnami_redmine;
mysql> grant all privileges on bitnami_redmine.* to 'bitnami_redmine'@'localhost' identified by 'DATABASE_PASSWORD';
mysql> flush privileges;
Restore the new database:
$ mysql -u root -p bitnami_redmine < backup.sql
Edit the Redmine configuration file to update the database user password (the same that you set previously) /opt/bitnami/apps/redmine/htdocs/config/database.yml [First -> sudo /opt/bitnami/ctlscript.sh stop mysql]:
production:
adapter: mysql2
database: bitnami_redmine
host: localhost
username: bitname_redmine
password: "DATABASE_PASSWORD"
encoding: utf8
Migrate the database to the latest version [First -> sudo /opt/bitnami/ctlscript.sh start mysql]:
$ cd /opt/bitnami/apps/redmine/htdocs
$ ruby bin/rake db:migrate RAILS_ENV="production"
7. Copy the files, /opt/bitnami/apps/redmine/htdocs/files folder from the old installation to the new one.
8. [OPTIONAL] If you have installed plugins in the previous version, copy the folders from "vendor/plugins" directory into new installation directory, in "plugins" folder. [este paso me le he saltado ya que no ha funcionado]
Check the plugins also support this new version and run the following command:
$ ruby bin/rake redmine:plugins RAILS_ENV="production"
Finally you should clean the cache and the sessions:
$ ruby bin/rake tmp:cache:clear
$ ruby bin/rake tmp:sessions:clear
Restart the servers and you can access to your new Redmine.
$ sudo /opt/bitnami/ctlscript.sh restart
9. How to configure the email settings of Redmine?
You can configure the email settings in the installdir/apps/redmine/htdocs/config/configuration.yml file. In older versions you should use theinstalldir/apps/redmine/htdocs/config/email.yml file. Please note that installdir stands for /opt/bitnami in the machines launched with Bitnami Cloud Hosting.
The sample configuration for GMail account is shown below:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.gmail.com
port: 587
domain: your_domain.com
authentication: :login
user_name: your_email@gmail.com
password: your_password
In case you receive an error message saying something like "530 5.7.0 Must issue a STARTTLS command first ...", make sure you have the enable_starttls_auto property set after the password line, enable_starttls_auto: true.
Once the configuration.yml file is changed, you need to restart the mongrel process:
In Redmine 2.0 or greater, if you see a similar error to this: "An error occurred while sending mail (SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol)" you should remove the tls: true option from the configuration.yml file. Then, in this case, you only have to restart Apache.
If you are using a SMTP server that do not require authentication, it is possible that you should add the following option:
You can also change the link that appears in the email. Go to Administration -> Settings -> General -> Host name and path and you can write your domain name and port.
10. Eliminate the bitnami banner:
$ /home/bitnami/apps/redmine/bnconfig --disable_banner
# installdir/ctlscript.sh restart apache
openssl_verify_mode: 'none'
Change local time
In order to change the clocal time you have to execute:
# ln -s /usr/share/zoneinfo/Etc/GMT+2 /etc/localtime