Vous êtes sur la page 1sur 3

## Demo - Instalacao Simples de Redmine 3 sobre CentOS 6.

8 ##
##

## Instala��o de um Centos 6.8 Basic Server

## Atualiza��o completa CentOS


yum update -y

## Disable Firewall e SELINUX

## Instala��o MySQL
cd /tmp
wget http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm
rpm -ivh mysql57-community-release-el6-8.noarch.rpm
yum install mysql-server
mysql_secure_installation

usu�rio: root
senha: SenhaQueDesejar

## Pacotes adicionais
yum -y install ImageMagick ImageMagick-devel libcurl-devel httpd-devel mysql-devel
ipa-pgothic-fonts

## Redmine 3.3
cd /tmp
wget http://www.redmine.org/releases/redmine-3.3.0.tar.gz
tar zxvf redmine-3.3.0.tar.gz

## Mover para o Apache


mv redmine-3.3.0/ /var/www/html
cd /var/www/html
chown apache.apache redmine-3.3.0/ -R
chmod 0750 redmine-3.3.0/ -R

## Instala��o Ruby 2.3.1 com RVM


curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload
rvm requirements run
rvm install 2.3.1
rvm use 2.3.1 --default

## Cria��o da base de dados MySQL


CREATE DATABASE redmine3 CHARACTER SET utf8;
CREATE USER 'redmine3'@'localhost' IDENTIFIED BY 'SenhaQueDesejar';
GRANT ALL PRIVILEGES ON redmine3.* TO 'redmine3'@'localhost';
FLUSH PRIVILEGES;

#### Configura��es de e-mail e conex�o do MySQL do Redmine


## Editar e colocar as configura��es a serem utilizadas
cd /var/www/html/redmine-3.3.0/config
cp database.yml.example database.yml
usu�rio: redmine3
senha: SenhaQueDesejar
servidor: localhost

cp configuration.yml.example configuration.yml
# Conta de e-mail:
# Senha: SenhaQueDesejar
####

## Dependencias Redmine
gem install bundler

### Instala��o Passenger Application Server for Ruby


gem install passenger

## Passenger Apache module installer


passenger-install-apache2-module

## Validar Passenger
passenger-config validate-install
####

## Revisar passenger.conf do Apache


LoadModule passenger_module /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-
5.0.30/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.3.1/wrappers/ruby
PassengerUser apache
PassengerGroup apache
</IfModule>

## Instala��o do Redmine
bundle install --without development test
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate

## Config Apache
<VirtualHost *:80>
ServerName meu.servidor.com.br
ServerAdmin webmaster@servidor.com.br
DocumentRoot /var/www/html/redmine-3.3.0/public
ErrorLog logs/redmine3_error_log

<Directory "/var/www/html/redmine-3.3.0">
RailsBaseURI /redmine-3.3.0
PassengerResolveSymlinksInDocumentRoot on
</Directory>

<Directory /var/www/html/redmine-3.3.0/public>
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>

## Ativa��o dos servi�os para durante o Boot


chkconfig mysqld on
chkconfig httpd on

## Reiniciar Apache
service httpd restart
## Instala��o b�sica de plugins
1. Copiar o plugin para /var/www/html/redmine-3.3.0/plugins
2. Executar: bundle exec rake redmine:plugins:migrate RAILS_ENV="production"
3. Caso gems forem necess�rios, executar: bundle install --without development test
4. Reiniciar Apache

## Tema - Exemplo
https://github.com/makotokw/redmine-theme-gitmike
cd /var/www/html/redmine-3.3/public/themes
git clone git://github.com/makotokw/redmine-theme-gitmike.git gitmike

## Logo - Caso queira alterar


http://www.redmine.org/projects/redmine/wiki/Howto_add_a_logo_to_your_Redmine_banne
r
Editar /var/www/html/redmine-3.3/app/views/layouts/base.html.erb

Vous aimerez peut-être aussi