설치 가이드 · 6 min read · Dec 19, 2025

우분투 서버 22.04에 Fork CMS 설치하는 방법

Fork는 초보자와 전문가를 위한 오픈 소스 콘텐츠 관리 시스템입니다. 웹사이트를 구축하고 모니터링하며 업데이트할 수 있는 사용자 친화적인 환경을 만들기 위해 설계되었습니다. 주로 블로그, 페이지 및 사용자와 같은 추가 모듈을 제공하는 CMS로 출시되었습니다. 강력한 앱과 테마는 필요에 따라 웹사이트를 사용자 정의하는 데 도움을 줍니다. 사용자 친화적인 사용자 인터페이스는 사용자가 빠르고 쉽게 웹사이트를 만들 수 있도록 도와줍니다.

이 튜토리얼에서는 우분투 22.04에서 Apache 및 Let’s Encrypt SSL과 함께 Fork CMS를 설치하는 방법을 보여줍니다.

전제 조건

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

Apache, MariaDB 및 PHP 설치

먼저, 다음 명령어를 사용하여 Apache 웹 서버와 MariaDB 서버를 설치합니다:

apt-get install apache2 mariadb-server -y

다음으로, 서버에 PHP 7.4 버전과 기타 확장을 설치해야 합니다. 그러나 PHP 7.4 버전은 우분투 기본 저장소에 포함되어 있지 않습니다. 따라서 Ondrej PHP 저장소를 서버에 추가해야 합니다. 다음 명령어로 추가할 수 있습니다:

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

PHP 저장소가 추가되면 다음 명령어를 사용하여 PHP와 기타 필요한 확장을 설치할 수 있습니다:

apt-get install php7.4 libapache2-mod-php7.4 php7.4-xml php7.4-cli php7.4-zip php7.4-common php7.4-sqlite3 php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-mysql php7.4-gd wget unzip -y

모든 패키지를 설치한 후 PHP 구성 파일을 편집하고 기본 설정을 변경합니다:

nano /etc/php/7.4/apache2/php.ini

필요에 따라 다음 설정을 변경합니다:

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

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

systemctl restart apache2

Fork CMS 데이터베이스 생성

먼저, MariaDB를 보안하고 MariaDB 루트 비밀번호를 설정해야 합니다. 다음 스크립트를 실행하여 MariaDB 설치를 보안할 수 있습니다:

mysql_secure_installation

이 스크립트는 루트 비밀번호를 설정하고, 익명 사용자를 제거하고, 원격 루트 로그인을 금지하며, 테스트 데이터베이스를 제거합니다:

Set root password? [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

MariaDB가 보안되면 MariaDB 셸에 로그인합니다:

다음으로, 다음 명령어로 MariaDB 셸에 로그인합니다:

mysql -u root -p

루트 비밀번호를 입력한 후 Fork CMS를 위한 데이터베이스와 사용자를 생성합니다:

MariaDB [(none)]> CREATE DATABASE forkdb;  
MariaDB [(none)]> CREATE USER 'forkuser'@'localhost' IDENTIFIED BY 'password';

다음으로, 다음 명령어로 Fork CMS 데이터베이스에 권한을 부여합니다:

MariaDB [(none)]> GRANT ALL PRIVILEGES ON forkdb.* TO 'forkuser'@'localhost';

다음으로, FLUSH PRIVILEGES 명령어를 실행하여 MariaDB가 권한 테이블을 다시 로드하도록 합니다:

MariaDB [(none)]> FLUSH PRIVILEGES;

마지막으로, 다음 명령어를 사용하여 MariaDB 셸에서 종료합니다:

MariaDB [(none)]> EXIT;

Fork CMS 설치

먼저, 시스템에 Composer를 설치해야 합니다. 다음 명령어로 설치할 수 있습니다:

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

다음과 같은 출력을 받게 됩니다:

All settings correct for using Composer
Downloading...

Composer (version 2.4.4) successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer

다음으로, Apache 웹 루트 디렉토리로 이동하여 Composer를 사용하여 Fork CMS를 다운로드합니다:

cd /var/www/html/  
composer create-project forkcms/forkcms

다음으로, Fork CMS 디렉토리에 적절한 권한과 소유권을 설정합니다:

chown -R www-data:www-data /var/www/html/forkcms  
chmod -R 775 /var/www/html/forkcms

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

Fork CMS를 위한 Apache 가상 호스트 생성

다음으로, 인터넷을 통해 Fork CMS를 제공하기 위해 Apache 가상 호스트 구성 파일을 생성해야 합니다. 다음 명령어로 생성할 수 있습니다:

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

다음 줄을 추가합니다:


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

     
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined


파일을 저장하고 닫은 후 다음 명령어로 Fork CMS를 활성화하고 Apache 재작성 모듈을 활성화합니다:

a2ensite forkcms.conf  
a2enmod rewrite

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

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 Tue 2022-12-13 05:35:24 UTC; 1s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 94668 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 94672 (apache2)
      Tasks: 6 (limit: 2238)
     Memory: 13.4M
        CPU: 45ms
     CGroup: /system.slice/apache2.service
             ??94672 /usr/sbin/apache2 -k start
             ??94673 /usr/sbin/apache2 -k start
             ??94674 /usr/sbin/apache2 -k start
             ??94675 /usr/sbin/apache2 -k start
             ??94676 /usr/sbin/apache2 -k start
             ??94677 /usr/sbin/apache2 -k start

Dec 13 05:35:24 ubuntu2204 systemd[1]: apache2.service: Deactivated successfully.
Dec 13 05:35:24 ubuntu2204 systemd[1]: Stopped The Apache HTTP Server.
Dec 13 05:35:24 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...

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

Fork CMS 웹 인터페이스에 접근

이제 웹 브라우저를 열고 URL http://forkcms.example.com/install/2.를 입력합니다. 다음 페이지로 리디렉션됩니다:

여기에서 원하는 언어를 선택한 후 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

여기에서 설치할 모듈을 선택한 후 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

여기에서 데이터베이스 세부정보를 제공한 후 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

여기에서 관리자 이메일 주소, 사용자 이름 및 비밀번호를 제공한 후 설치 완료 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

이제 Fork CMS에 로그인 버튼을 클릭합니다. 다음 페이지에서 Fork CMS 로그인 화면이 표시됩니다:

이제 관리자 사용자 이름과 비밀번호를 제공한 후 로그인 버튼을 클릭합니다. 다음 이미지와 같이 Fork CMS 대시보드로 리디렉션됩니다:

Let’s Encrypt SSL로 ForkCMS 보안

ForkCMS 웹사이트에 Let’s Encrypt SSL을 설치하려면 서버에 certbot 패키지를 설치해야 합니다.

먼저, 다음 명령어로 Snap 패키지 관리자를 설치합니다:

apt install snapd

다음으로, Snap 패키지를 최신 버전으로 업데이트합니다:

snap install core  
snap refresh core

다음으로, 다음 명령어를 사용하여 certbot 패키지를 설치합니다:

snap install --classic certbot

다음으로, Certbot 바이너리에 대한 심볼릭 링크를 시스템 위치에 생성합니다:

ln -s /snap/bin/certbot /usr/bin/certbot

다음으로, 다음 명령어를 실행하여 Let’s Encrypt SSL 인증서를 다운로드하고 설치합니다:

certbot --apache -d forkcms.example.com

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

Saving debug log to /var/log/letsencrypt/letsencrypt.log
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.3-September-21-2022.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued,
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

Y를 입력하고 Enter 키를 눌러 도메인에 대한 SSL 인증서를 다운로드하고 설치합니다:

Account registered.
Requesting a certificate for forkcms.example.com

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/forkcms.example.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/forkcms.example.com/privkey.pem
This certificate expires on 2023-02-28.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for forkcms.example.com to /etc/nginx/conf.d/mastodon.conf
Congratulations! You have successfully enabled HTTPS on https://forkcms.example.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

결론

이 게시물에서는 우분투 22.04 서버에서 Apache 및 Let’s Encrypt SSL과 함께 Fork CMS를 설치하는 방법을 설명했습니다. 이제 Fork CMS 직관적인 웹 인터페이스를 통해 웹사이트를 구축하고 모니터링하며 업데이트할 수 있습니다. 질문이 있으면 언제든지 문의해 주세요.

Share: X/Twitter LinkedIn

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

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