aws xe3 - RLidea/dev.docs GitHub Wiki

AWS Ubuntu 18에 XE3 μ„€μΉ˜ν•˜κΈ°

Instance: Ubuntu 18

Update

sudo apt-get update -y
sudo apt-get upgrade -y

Install nginx

Install

sudo apt install nginx

Setting

sudo vi /etc/nginx/sites-available/default

default

server {
    ...

    root /home/ubuntu; # μ›ν•˜λŠ” λ””λ ‰ν† λ¦¬λ‘œ μˆ˜μ •

    ...

    # λ‚΄μš© μΆ”κ°€
    location / {
        index  index.php index.html index.htm;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
    }
}

μž¬μ‹œμž‘ ν•˜μ—¬ 적용.

sudo service nginx restart

Install php7.3

add PPA

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update -y

Install php 7.3 FPM for nginx

sudo apt install php7.3-fpm -y
php-fpm7.3 -v

Install php extensions

sudo apt install php7.3-mysql php7.3-curl php7.3-zip php7.3-gd php7.3-mbstring php7.3-xml -y

Install Composer

sudo apt install composer -y

Change setting

sudo vi /etc/php/7.3/fpm/php.ini
sudo service php7.3-fpm restart

Install MariaDB

Add PPA

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64] http://mirror.zol.co.zw/mariadb/repo/10.3/ubuntu bionic main'
sudo apt update

Install DB

sudo apt -y install mariadb-server mariadb-client
mysql --version
sudo systemctl start mariadb

Install XE3

php -r "copy('http://start.xpressengine.io/download/installer', 'installer');" && php installer install