CMS 설치 · 6 min read · Dec 19, 2025

Ubuntu 22.04에 Let's Encrypt SSL로 Flatpress CMS 설치하는 방법

FlatPress는 무료이자 오픈 소스이며 가장 빠른 콘텐츠 관리 시스템입니다. PHP 언어로 작성되었으며 데이터베이스 접근이 없는 사람에게 훌륭한 도구입니다. 경량의 설정이 쉬운 블로깅 엔진이며 사회 및 커뮤니케이션 카테고리에서 뛰어납니다. 여러 언어, 플러그인, 테마, 위젯 등을 지원합니다.

이 튜토리얼에서는 Ubuntu 22.04 서버에 FlatPress를 설치하는 방법을 설명하겠습니다.

요구 사항

  • Ubuntu 22.04를 실행하는 서버.
  • sudo 권한이 있는 비루트 사용자.

Apache 및 PHP 설치

기본적으로 Ubuntu 22.04의 기본 PHP 버전은 PHP 8.1입니다. 그러나 FlatPress는 PHP 8.0 버전만 지원합니다. 따라서 시스템에 PHP 저장소를 추가해야 합니다. 다음 명령어로 추가할 수 있습니다:

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

저장소가 추가되면 다음 명령어를 실행하여 Apache, PHP 및 모든 필요한 PHP 확장을 설치합니다:

apt-get install apache2 php8.0 php8.0-mysql php8.0-curl php8.0-cgi libapache2-mod-php8.0 php8.0-mcrypt php8.0-xmlrpc php8.0-gd php8.0-mbstring php8.0 php8.0-common php8.0-xmlrpc php8.0-soap php8.0-xml php8.0-intl php8.0-cli php8.0-ldap php8.0-zip php8.0-readline php8.0-imap php8.0-tidy php8.0-sql php8.0-intl wget unzip -y

모든 패키지를 설치한 후, Apache 서비스를 시작하고 부팅 시 시작하도록 활성화하려면 다음 명령어를 실행합니다:

systemctl start apache2  
systemctl enable apache2

작업이 완료되면 다음 단계로 진행할 수 있습니다.

FlatPress 설치

먼저, FlatPress Git 저장소를 방문하여 다음 명령어로 최신 버전을 다운로드합니다:

wget https://github.com/flatpressblog/flatpress/archive/1.2.1.zip

다음으로, 다음 명령어로 다운로드한 파일의 압축을 풉니다:

unzip 1.2.1.zip

다음으로, 추출된 디렉토리를 Apache 루트 디렉토리로 복사하고 적절한 권한을 부여하려면 다음 명령어를 실행합니다:

cp -r flatpress-1.2.1 /var/www/html/flatpress
chown -R www-data.www-data /var/www/html/flatpress  
chmod -R 775 /var/www/html/flatpress

FlatPress를 위한 Apache 구성

다음으로, Flatpress를 위한 Apache 가상 호스트 파일을 생성해야 합니다. 다음 명령어로 생성할 수 있습니다:

nano /etc/apache2/sites-available/flatpress.conf

다음 줄을 추가합니다:


     ServerAdmin [email protected]
     DocumentRoot /var/www/html/flatpress
     ServerName flatpress.example.com

     
          AllowOverride All
          Require all granted
     

     ErrorLog ${APACHE_LOG_DIR}/flatpress_error.log
     CustomLog ${APACHE_LOG_DIR}/flatpress_access.log combined


파일을 저장하고 닫습니다. 그런 다음, 다음 명령어로 가상 호스트를 활성화합니다:

a2ensite flatpress

다음으로, Apache 재작성 모듈을 활성화하고 다음 명령어로 Apache 서비스를 다시 로드합니다:

a2enmod rewrite  
systemctl restart apache2

다음 명령어로 Apache 상태를 확인할 수도 있습니다:

systemctl status apache2

다음과 같은 출력을 볼 수 있어야 합니다:

? apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-11-20 11:37:30 UTC; 6s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 100768 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 100772 (apache2)
      Tasks: 6 (limit: 2242)
     Memory: 14.3M
        CPU: 85ms
     CGroup: /system.slice/apache2.service
             ??100772 /usr/sbin/apache2 -k start
             ??100773 /usr/sbin/apache2 -k start
             ??100774 /usr/sbin/apache2 -k start
             ??100775 /usr/sbin/apache2 -k start
             ??100776 /usr/sbin/apache2 -k start
             ??100777 /usr/sbin/apache2 -k start

Nov 20 11:37:30 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...

작업이 완료되면 다음 단계로 진행할 수 있습니다.

Let’s Encrypt SSL로 FlatPress 보안 설정

FlatPress 사이트를 Let’s Encrypt SSL 인증서로 보안 설정하는 것은 좋은 아이디어입니다. 이를 위해 시스템에 Certbot 클라이언트를 설치해야 합니다. Certbot은 웹사이트에서 SSL 인증서를 다운로드하고 관리하는 데 도움이 되는 클라이언트 패키지입니다.

다음 명령어로 Certbot을 설치할 수 있습니다:

apt-get install certbot python3-certbot-apache -y

Certbot 클라이언트가 성공적으로 설치되면, 다음 명령어를 실행하여 웹사이트에 Let’s Encrypt SSL을 설치합니다:

certbot --apache -d flatpress.example.com

유효한 이메일을 제공하고 서비스 약관에 동의하라는 메시지가 표시됩니다:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for flatpress.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/flatpress-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/flatpress-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/flatpress-le-ssl.conf

다음으로, HTTP 트래픽을 HTTPS로 리디렉션할지 여부를 선택하거나 Nginx를 구성하여 모든 트래픽을 안전한 HTTPS 접근으로 리디렉션합니다. 다음 출력과 같이:

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

2를 입력하고 Enter를 눌러 프로세스를 시작합니다. 설치가 완료되면 다음과 같은 출력을 받아야 합니다:

Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/flatpress.conf to ssl vhost in /etc/apache2/sites-available/flatpress-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://flatpress.example.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=flatpress.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/flatpress.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/flatpress.example.com/privkey.pem
   Your cert will expire on 2023-02-20. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all*
   of your certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

이 시점에서, FlatPress 사이트는 Let’s Encrypt SSL로 보안 설정되었습니다. 이제 HTTPS 프로토콜을 사용하여 안전하게 사이트에 접근할 수 있습니다.

FlatPress CMS 접근

이제 웹 브라우저를 열고 URL https://flatpress.example.com을 입력합니다. FlatPress 설치 페이지로 리디렉션됩니다:

FlatPress CMS 설치 프로그램

이제 다음 버튼을 클릭합니다. 관리자 사용자 생성 페이지가 표시됩니다:

사용자 생성

여기에서 관리자 사용자 이름, 비밀번호, 이메일을 제공하고 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

FlatPress 설치 완료

지금 로그인 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

FlatPress 로그인

관리자 사용자 이름, 비밀번호를 제공하고 로그인 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

FlatPress 관리자

결론

이 튜토리얼에서는 Ubuntu 22.04에서 Apache 및 Let’s Encrypt SSL로 FlatPress를 설치하는 방법을 설명했습니다. 이제 FlatPress CMS를 사용하여 간단하고 빠른 웹사이트와 블로그를 만들 수 있습니다. 질문이 있으면 언제든지 문의해 주세요.

Share: X/Twitter LinkedIn

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

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