1. Install Git
    sudo apt install git-all
  2. Clone Project
    git clone https://github.com/davidjhk/sms
  3. Git Config
    git config --global user.name "davidjhk"
    git config --global user.email davidjhk@gmail.com
  4. Setup Nginx Virtual Host
    vi /opt/bitnami/apps/wordpress/conf/nginx-vhosts.conf
    Add following text.
server{
    listen 80;
    server_name sms.cabible.org;
    access_log logs/yii2.access.log;
    error_log logs/yii2.error.log error;

    root /opt/bitnami/apps/wordpress/htdocs/sms/frontend/web;
    index index.php index.html index.htm;
    location / {
        try_files $uri $uri/ /index.php?$args;
    }
    include "/opt/bitnami/apps/wordpress/conf/nginx-app.conf";
}
  1. Change nginx settings
    sudo vi /opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf

    #include "/opt/bitnami/apps/wordpress/conf/nginx-prefix.conf"; // 주석 처리

  2. Restart nginx
    sudo /opt/bitnami/ctlscript.sh restart
  3. Composer update
  4. Copy nessasary files
    frontend/web/index.php
    frontend/config/
    common/config/
  5. Give Permission
    sudo chmod 777 -R frontend/web/assets/
    sudo chmod 777 -R frontend/runtime