CMS 설치 · 8 min read · Nov 19, 2025

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

Fuel CMS는 웹사이트에 사용되는 오픈 소스 콘텐츠 관리 시스템입니다. CodeIgniter PHP 웹 프레임워크를 기반으로 하며 고급 웹 개발에 사용됩니다. 사용자가 요구 사항에 따라 사용자 정의 모듈을 생성하고 CMS 부분을 보고 사용할 수 있도록 도와줍니다. 모든 장치에서 웹사이트를 관리할 수 있는 간단하고 사용자 친화적인 웹 인터페이스를 제공합니다.

이 문서에서는 Ubuntu 22.04에 Nginx 및 Let’s Encrypt SSL로 Fuel CMS 시스템을 설치하는 방법을 설명합니다.

필수 조건

  • Ubuntu 22.04를 실행하는 서버.
  • 서버 IP를 가리키는 도메인 이름.
  • 서버에 구성된 루트 비밀번호.

시스템 업데이트

먼저 시스템 패키지를 최신 버전으로 업데이트하는 것이 좋습니다. 다음 명령어로 업데이트할 수 있습니다:

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

모든 패키지가 업데이트되면 다음 단계로 진행할 수 있습니다.

Nginx, MariaDB 및 PHP 설치

다음으로, 시스템에 Nginx 웹 서버, MariaDB, PHP 및 기타 PHP 확장을 설치해야 합니다. 다음 명령어로 모든 패키지를 설치할 수 있습니다:

apt-get install nginx mariadb-server php php-cli php-fpm php-mysqli php-curl php-gd php-xml php-common unzip -y

모든 패키지가 설치되면 php.ini 파일을 편집하고 일부 기본 PHP 설정을 변경합니다:

nano /etc/php/8.1/fpm/php.ini

다음 줄을 변경합니다:

memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = UTC

파일을 저장하고 닫은 후 PHP-FPM 서비스를 재시작하여 변경 사항을 적용합니다:

systemctl restart php8.1-fpm

MariaDB 데이터베이스 구성

다음으로, Fuel CMS를 위한 데이터베이스와 사용자를 생성해야 합니다. 먼저 다음 명령어로 MariaDB 콘솔에 로그인합니다:

mysql

연결되면 다음 명령어로 데이터베이스와 사용자를 생성합니다:

MariaDB [(none)]> CREATE DATABASE fuel;  
MariaDB [(none)]> GRANT ALL ON fuel.* TO 'fuel'@'localhost' IDENTIFIED BY 'password';

다음으로, 권한을 플러시하고 다음 명령어로 MariaDB에서 나갑니다:

MariaDB [(none)]> FLUSH PRIVILEGES;  
MariaDB [(none)]> EXIT;

이 시점에서 MariaDB는 Fuel CMS에 대해 구성되었습니다. 이제 다음 단계로 진행할 수 있습니다.

Fuel CMS 설치

먼저 다음 명령어로 Fuel CMS 콘텐츠를 저장할 디렉토리를 생성합니다:

mkdir -p /var/www/html/fuel

다음으로 Fuel CMS 디렉토리로 이동하고 다음 명령어로 Fuel CMS의 최신 버전을 다운로드합니다:

cd /var/www/html/fuel  
wget https://github.com/daylightstudio/FUEL-CMS/archive/master.zip

다운로드가 완료되면 다음 명령어로 다운로드한 파일의 압축을 풉니다:

unzip master.zip

다음으로, 추출된 디렉토리의 모든 콘텐츠를 현재 디렉토리로 이동합니다:

mv FUEL-CMS-master/* .

다음으로 database.php 파일을 편집하고 데이터베이스 설정을 정의합니다:

nano fuel/application/config/database.php

다음 줄을 변경합니다:

$db['default'] = array(
        'dsn'   => '',
        'hostname' => 'localhost',
        'username' => 'fuel',
        'password' => 'password',
        'database' => 'fuel',
        'dbdriver' => 'mysqli',
        'dbprefix' => '',
        'pconnect' => FALSE,

다음으로, 다음 명령어로 fuel 데이터베이스에 Fuel CMS 스키마를 가져옵니다:

mysql -u fuel -p fuel < fuel/install/fuel_schema.sql

다음으로 MY_fuel.php 파일을 편집하고 관리자 로그인을 활성화합니다:

nano fuel/application/config/MY_fuel.php

다음과 같이 FALSE를 TRUE로 변경합니다:

$config['admin_enabled’] = TRUE;

파일을 저장하고 닫은 후 세션 디렉토리를 생성하고 적절한 소유권을 설정합니다:

mkdir -p /var/lib/php/session  
chown -R www-data:www-data /var/lib/php/session  
chown -R www-data:www-data /var/www/html/fuel

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

Fuel CMS를 위한 Nginx 구성

먼저 Fuel CMS를 제공하기 위해 Nginx 가상 호스트 구성 파일을 생성합니다.

nano /etc/nginx/conf.d/fuel.conf

다음 줄을 추가합니다:

server {

listen 80;
root /var/www/html/fuel;
index index.php index.html index.htm;
server_name fuelcms.example.com;

location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass           unix:/var/run/php/php8.1-fpm.sock;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
     }

}

파일을 저장하고 닫은 후 다음 명령어로 Nginx의 구문 오류를 확인합니다:

ginx -t

다음과 같은 출력을 받아야 합니다:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

다음으로, 변경 사항을 적용하기 위해 Nginx 서비스를 재시작합니다:

systemctl reload nginx

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

systemctl status nginx

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

? nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-11-20 11:20:17 UTC; 8min ago
       Docs: man:nginx(8)
    Process: 77816 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=0/SUCCESS)
   Main PID: 76763 (nginx)
      Tasks: 2 (limit: 2242)
     Memory: 3.0M
        CPU: 62ms
     CGroup: /system.slice/nginx.service
             ??76763 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             ??77817 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

Nov 20 11:20:17 ubuntu2204 systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 20 11:20:17 ubuntu2204 systemd[1]: Started A high performance web server and a reverse proxy server.
Nov 20 11:28:14 ubuntu2204 systemd[1]: Reloading A high performance web server and a reverse proxy server...
Nov 20 11:28:14 ubuntu2204 systemd[1]: Reloaded A high performance web server and a reverse proxy server.

이 시점에서 Nginx는 Fuel CMS를 호스팅하도록 구성되었습니다. 이제 Fuel CMS에 접근할 수 있습니다.

Fuel CMS 웹 인터페이스 접근

이제 웹 브라우저를 열고 URL http://fuelcms.example.com/fuel을 사용하여 Fuel CMS에 접근합니다. Fuel CMS 로그인 페이지로 리디렉션됩니다:

기본 관리자 사용자 이름과 비밀번호를 admin으로 제공하고 로그인 버튼을 클릭합니다. 비밀번호 재설정 화면이 표시됩니다:

비밀번호 재설정 버튼을 클릭합니다. 다음 화면이 표시됩니다:

새 비밀번호를 입력하고 변경 사항을 저장하기 위해 저장 버튼을 클릭합니다. 이제 대시보드 버튼을 클릭합니다. 다음 페이지에서 Fuel CMS 대시보드를 볼 수 있습니다:

Let’s Encrypt로 Fuel CMS 보안 설정

다음으로, Let’s Encrypt SSL을 설치하고 관리하기 위해 Certbot 클라이언트 패키지를 설치해야 합니다.

먼저 다음 명령어로 Certbot을 설치합니다:

apt-get install python3-certbot-nginx -y

설치가 완료되면 다음 명령어를 실행하여 웹사이트에 Let’s Encrypt SSL을 설치합니다:

certbot --nginx -d fuelcms.example.com

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

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
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 fuelcms.example.com
Waiting for verification...
Cleaning up challenges
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/fuel.conf

다음으로, HTTP 트래픽을 HTTPS로 리디렉션할지 여부를 선택합니다:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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를 눌러 설치를 마칩니다. 다음과 같은 출력을 받아야 합니다:

Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/fuel.conf

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

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

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/fuelcms.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/fuelcms.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"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - 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

 - We were unable to subscribe you the EFF mailing list because your
   e-mail address appears to be invalid. You can try again later by
   visiting https://act.eff.org.

이제 웹사이트가 Let’s Encrypt SSL로 보호되었습니다. URL https://fuelcms.example.com을 사용하여 안전하게 접근할 수 있습니다.

결론

축하합니다! Ubuntu 22.04에 Nginx 및 Let’s Encrypt SSL로 Fuel CMS를 성공적으로 설치했습니다. 이제 Fuel CMS를 사용해보고 기능을 탐색하며 자신의 웹사이트나 블로그를 호스팅할 수 있습니다. 질문이 있으면 언제든지 문의해 주세요.

Share: X/Twitter LinkedIn

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

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