CMS 설치 · 4 min read · Jan 24, 2026

CentOS 7에서 Nginx 및 Let's Encrypt SSL로 Automad CMS 설치

Automad는 PHP로 작성된 파일 기반 콘텐츠 관리 시스템(CMS) 및 템플릿 엔진입니다. 모든 콘텐츠는 데이터베이스 대신 사람이 읽을 수 있는 텍스트 파일에 저장됩니다. 따라서 Automad 사이트는 완전히 이식 가능하며, 설치가 쉽고 Git 또는 Mercurial을 사용하여 버전 관리할 수 있습니다. 그럼에도 불구하고 검색 및 태그 지정과 같은 데이터베이스 기능을 제공합니다. 내장된 템플릿 엔진은 경험이 부족한 개발자와 디자이너도 아름다운 테마와 템플릿을 만들 수 있게 해줍니다. 이 튜토리얼에서는 NGINX를 웹 서버로 사용하여 CentOS 7 시스템에서 Automad CMS 설치 및 설정을 진행합니다.

요구 사항

Automad CMS를 설치하고 실행하기 위한 요구 사항은 다음과 같습니다:

  • PHP 버전 5.4 이상.
  • Nginx 또는 Apache와 같은 웹 서버 소프트웨어.

전제 조건

  • CentOS 7 운영 체제.
  • sudo 권한이 있는 비루트 사용자.

초기 단계

CentOS 버전을 확인하세요:

cat /etc/centos-release  
# CentOS Linux release 7.6.1810 (Core)

시간대 설정:

timedatectl list-timezones  
sudo timedatectl set-timezone 'Region/City'

운영 체제 패키지(소프트웨어)를 업데이트합니다. 이는 운영 체제의 기본 소프트웨어 패키지에 대한 최신 업데이트 및 보안 수정을 보장하는 중요한 첫 번째 단계입니다:

sudo yum update -y

CentOS 운영 체제의 기본 관리를 위해 필요한 몇 가지 필수 패키지를 설치합니다:

sudo yum install -y curl wget vim git unzip socat bash-completion epel-release

1단계 - PHP 및 필요한 PHP 확장 설치

Webtatic YUM 리포지토리를 설정합니다:

sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

PHP와 필요한 PHP 확장을 설치합니다:

sudo yum install -y php72w php72w-cli php72w-fpm php72w-common php72w-mbstring php72w-xmlrpc php72w-soap php72w-gd php72w-xml php72w-curl php72w-zip

컴파일된 PHP 모듈을 표시하려면 다음을 실행할 수 있습니다:

php -m  
  
ctype  
curl  
exif  
fileinfo  
. . .  
. . .

PHP 버전을 확인합니다:

php --version  
# PHP 7.2.19 (cli) (built: Jan 12 2019 12:47:33) ( NTS )  
# Copyright (c) 1997-2018 The PHP Group  
# Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies  
# with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies

PHP-FPM 서비스를 시작하고 활성화합니다:

sudo systemctl start php-fpm.service  
sudo systemctl enable php-fpm.service

2단계 - acme.sh 클라이언트 설치 및 Let’s Encrypt 인증서 받기 (선택 사항)

HTTPS로 포럼을 보호하는 것은 필수는 아니지만 사이트 트래픽을 보호하는 좋은 방법입니다. Let’s Encrypt에서 TLS 인증서를 받기 위해 acme.sh 클라이언트를 사용할 것입니다. Acme.sh는 종속성이 없는 상태로 Let’s Encrypt에서 TLS 인증서를 받기 위한 간단한 UNIX 셸 소프트웨어입니다.

acme.sh를 다운로드하고 설치합니다:

sudo su - root  
git clone https://github.com/Neilpang/acme.sh.git  
cd acme.sh   
./acme.sh --install --accountemail [email protected]  
source ~/.bashrc  
cd ~

acme.sh 버전을 확인합니다:

acme.sh --version  
# v2.8.2

도메인/호스트 이름에 대한 RSAECC/ECDSA 인증서를 받습니다:

# RSA 2048  
acme.sh --issue --standalone -d example.com --keylength 2048  
# ECDSA  
acme.sh --issue --standalone -d example.com --keylength ec-256

테스트를 위한 가짜 인증서를 원하시면 위 명령어에 --staging 플래그를 추가할 수 있습니다.

위 명령어를 실행한 후, 인증서는 다음 위치에 저장됩니다:

  • RSA: /home/username/example.com 디렉토리.
  • ECC/ECDSA: /home/username/example.com_ecc 디렉토리.

발급된 인증서를 나열하려면 다음을 실행할 수 있습니다:

acme.sh --list

인증서를 저장할 디렉토리를 생성합니다. /etc/letsencrypt 디렉토리를 사용할 것입니다.

mkdir -p /etc/letsecnrypt/example.com  
sudo mkdir -p /etc/letsencrypt/example.com_ecc

인증서를 /etc/letsencrypt 디렉토리에 설치/복사합니다.

# RSA  
acme.sh --install-cert -d example.com --cert-file /etc/letsencrypt/example.com/cert.pem --key-file /etc/letsencrypt/example.com/private.key --fullchain-file /etc/letsencrypt/example.com/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"  
# ECC/ECDSA  
acme.sh --install-cert -d example.com --ecc --cert-file /etc/letsencrypt/example.com_ecc/cert.pem --key-file /etc/letsencrypt/example.com_ecc/private.key --fullchain-file /etc/letsencrypt/example.com_ecc/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"

모든 인증서는 60일마다 자동으로 갱신됩니다.

인증서를 받은 후 루트 사용자에서 로그아웃하고 일반 sudo 사용자로 돌아갑니다:

exit

3단계 - NGINX 설치 및 구성

CentOS 리포지토리에서 NGINX를 다운로드하고 설치합니다:

sudo yum install -y nginx

NGINX 버전을 확인합니다:

sudo nginx -v  
# nginx version: nginx/1.12.2

Nginx 서비스를 시작하고 활성화합니다:

sudo systemctl start nginx.service  
sudo systemctl enable nginx.service

sudo vim /etc/nginx/conf.d/automad.conf를 실행하고 다음 구성으로 파일을 채웁니다:

server {

  listen [::]:443 ssl http2;  
  listen 443 ssl http2;  
  listen [::]:80;  
  listen 80;  

  # RSA  
  ssl_certificate /etc/letsencrypt/example.com/fullchain.pem;  
  ssl_certificate_key /etc/letsencrypt/example.com/private.key;  
  # ECC  
  ssl_certificate /etc/letsencrypt/example.com_ecc/fullchain.pem;  
  ssl_certificate_key /etc/letsencrypt/example.com_ecc/private.key;  

  server_name example.com;

  root /var/www/automad;

  index index.php index.html;

  client_max_body_size 100M;

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }


  location ~ \.php$ {
    fastcgi_index index.php;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
  }

}

NGINX 구성에서 구문 오류를 확인합니다:

sudo nginx -t

Nginx를 다시 로드합니다:

sudo systemctl reload nginx.service

4단계 - Automad CMS 설치

Automad의 문서 루트 디렉토리를 생성합니다:

sudo mkdir -p /var/www/automad

문서 루트로 이동합니다:

cd /var/www/automad

curl을 사용하여 Automad CMS의 최신 릴리스를 다운로드합니다. 더 최신 릴리스가 있을 경우 버전 번호를 올리는 것을 잊지 마세요:

sudo curl -O -J -L https://automad.org/download

zip 아카이브를 압축 해제합니다:

sudo unzip automad-master.zip

모든 Automad 파일을 문서 루트로 이동하고 다운로드한 zip 아카이브를 제거합니다:

sudo mv automad-master/* . && sudo mv automad-master/.* .  
sudo rm automad-master.zip  
sudo rmdir automad-master

적절한 소유권을 제공합니다:

sudo chown -R nginx:nginx /var/www/automad

sudo vim /etc/php-fpm.d/www.conf를 실행하고 사용자 및 그룹을 nginx로 설정합니다. 처음에는 apache로 설정되어 있을 것입니다. 실행:

sudo vim /etc/php-fpm.d/www.conf

그리고 사용자 및 그룹을 nginx로 설정합니다:

user = nginx  
group = nginx

마지막으로 이러한 변경 사항을 적용하기 위해 PHP-FPM 서비스를 재시작합니다:

sudo systemctl restart php-fpm.service

5단계 - Automad 설치 완료

마지막 단계로, 대시보드라는 브라우저 기반 사용자 인터페이스를 사용하기 위해 사용자 계정을 생성합니다. 따라서 https://example.com/dashboard로 이동하여 지침을 따릅니다.

Automad 대시보드를 사용하기 전에 계정을 생성해야 합니다:

Automad CMS에서 사용자 생성

양식을 사용하여 사용자 계정을 생성하고 생성된 파일을 컴퓨터에 다운로드합니다. 이후 다운로드한 파일을 Automad 설치 디렉토리 내의 “/config” 디렉토리로 이동해야 합니다.

그 후 Automad 대시보드에 로그인할 수 있습니다:

Automad에 로그인

마지막으로 Automad 관리 인터페이스가 표시됩니다:

Automad CMS 대시보드

그게 전부입니다. Automad 설치가 완료되었습니다.

링크

Share: X/Twitter LinkedIn

새 게시물을 받은 편지함에서 받기

스팸은 없습니다. 언제든지 구독 해지 가능합니다.