more ubuntu install updates
This commit is contained in:
parent
c74ffb195b
commit
925d7b2bc4
1 changed files with 12 additions and 5 deletions
|
@ -3,23 +3,30 @@
|
|||
|
||||
### Prerequisites
|
||||
* apt-get install curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server nginx
|
||||
* mysql --defaults-extra-file=/etc/mysql/debian.cnf -e "CREATE USER 'zammad'@'localhost' IDENTIFIED BY 'Your_Pass_Word!'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'zammad'@'localhost'; FLUSH PRIVILEGES;"
|
||||
* cp /opt/zammad/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
|
||||
* vi /etc/nginx/sites-available/zammad.conf
|
||||
* change "zammad.example.com" to your domain
|
||||
* ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
|
||||
|
||||
### Add User
|
||||
* useradd zammad -m -d /opt/zammad -s /bin/bash
|
||||
* echo "export RAILS_ENV=production" >> /opt/zammad/.bashrc
|
||||
|
||||
### Create MySQL User zammad
|
||||
* mysql --defaults-extra-file=/etc/mysql/debian.cnf -e "CREATE USER 'zammad'@'localhost' IDENTIFIED BY 'Your_Pass_Word!'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'zammad'@'localhost'; FLUSH PRIVILEGES;"
|
||||
|
||||
### Get Zammad
|
||||
* su zammad
|
||||
* cd ~
|
||||
* wget http://ftp.zammad.com/zammad-latest.tar.gz
|
||||
* tar -xzf zammad-latest.tar.gz
|
||||
* exit
|
||||
|
||||
### Create Nginx Config
|
||||
* cp /opt/zammad/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
|
||||
* vi /etc/nginx/sites-available/zammad.conf
|
||||
* change "zammad.example.com" to your domain
|
||||
* ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
|
||||
|
||||
### Install Environnment
|
||||
* su zammad
|
||||
* cd ~
|
||||
* gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
||||
* curl -L https://get.rvm.io | bash -s stable
|
||||
* source /opt/zammad/.rvm/scripts/rvm
|
||||
|
|
Loading…
Reference in a new issue