Redmine Installation Note on Amazon Linux

|

cd /
mkdir swap
cd swap
dd if=/dev/zero of=/swap/swap01 bs=1024 count=2097152  
chmod 600 swap01 
mkswap swap01 
swapon swap01 
vim /etc/fstab 

wget https://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
yum localinstall http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum install mysql-community-server
service mysqld start
mysql_secure_installation

yum install httpd24
yum install zlib-devel curl-devel openssl-devel httpd24-devel apr-devel apr-util-devel mysql-devel
yum install ImageMagick ImageMagick-devel

yum install gcc-c++ patch readline readline-devel zlib zlib-devel 
yum install libyaml-devel libffi-devel openssl-devel make 
yum install bzip2 autoconf automake libtool bison iconv-devel

curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 2.2.3

curl --silent --location https://rpm.nodesource.com/setup | bash -
yum install -y nodejs

gem install passenger
passenger-install-apache2-module

vi database.yml

bundle install

mkdir -p tmp tmp/pdf public/plugin_assets
sudo chown -R redmine:redmine files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets

<VirtualHost *:80>

ServerName scm.unistylist.com
ServerAdmin webmaster@unistylist.com
DocumentRoot /data/redmine
CustomLog logs/scm.unistylist.com.access.log combined
ErrorLog logs/scm.unistylist.com.error.log
#that allows to upload files up to 20 mb
#MaxRequestLen 104857600

<Directory /data/redmine>

    Require all granted
    PassengerEnabled On
    PassengerResolveSymlinksInDocumentRoot on
    RailsBaseURI /
    RailsEnv production

</Directory>

</VirtualHost>



And