웹 호스팅 · 7 min read · Dec 29, 2025
우분투 22.04에서 Chevereto-Free로 이미지 호스팅 웹사이트 만들기

Chevereto는 웹에서 자체 이미지 호스팅 서버를 호스팅할 수 있는 무료 오픈 소스 이미지 호스팅 및 공유 소프트웨어입니다. 이는 자가 호스팅, 다목적, 다사용자 및 전체 기능을 갖춘 이미지 호스팅 솔루션으로, 반응형 이미지 호스팅 웹사이트를 만들 수 있습니다. 여러 언어, 대량 이미지 가져오기, 소셜 미디어 통합, 여러 서버 등 많은 기능을 제공합니다.
이 게시물에서는 우분투 22.04에서 Chevereto 이미지 호스팅 솔루션을 설치하는 방법을 보여드리겠습니다.
전제 조건
- 우분투 22.04를 실행하는 서버.
- 서버에 루트 비밀번호가 설정되어 있어야 합니다.
시작하기
먼저, 모든 시스템 패키지를 최신 버전으로 업데이트하고 업그레이드하는 것이 좋습니다. 다음 명령어를 실행하여 업데이트할 수 있습니다:
apt update -y
apt upgrade -y모든 패키지가 업그레이드되면, 다음 명령어를 실행하여 추가로 필요한 종속성을 설치합니다:
apt install apt-transport-https ca-certificates curl software-properties-common -y모든 종속성이 설치되면 다음 단계로 진행할 수 있습니다.
Apache, PHP 및 MariaDB 서버 설치
시작하기 전에 서버에 LAMP 서버를 설치해야 합니다.
먼저, 다음 명령어를 사용하여 Apache 및 MariaDB 서버를 설치합니다:
apt install apache2 mariadb-server다음으로, 다음 명령어를 사용하여 APT에 PHP 저장소를 추가합니다:
add-apt-repository ppa:ondrej/php -y다음으로, 다음 명령어를 사용하여 PHP 버전 7.4와 기타 필요한 확장자를 설치합니다:
apt install php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-json php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath -y모든 패키지가 설치되면 다음 단계로 진행할 수 있습니다.
MariaDB 데이터베이스 생성
먼저, 다음 스크립트를 실행하여 MariaDB 설치를 보호하고 루트 비밀번호를 설정합니다:
mysql_secure_installation아래와 같이 모든 질문에 답변합니다:
Enter current password for root (enter for none): Press ENTER
Set root password? [Y/n]: Y
New password: Set-your-new-password
Re-enter new password: Set-your-new-password
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에 로그인합니다:
mysql -u root -p로그인한 후, 다음 명령어를 사용하여 데이터베이스와 사용자를 생성합니다:
MariaDB [(none)]> CREATE DATABASE chevereto;
MariaDB [(none)]> CREATE USER 'chevereto'@'localhost' IDENTIFIED BY 'password';다음으로, 다음 명령어를 사용하여 Chevereto 데이터베이스에 모든 권한을 부여합니다:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON chevereto.* TO 'chevereto'@'localhost';다음으로, 변경 사항을 적용하기 위해 권한을 플러시합니다:
MariaDB [(none)]> FLUSH PRIVILEGES;마지막으로, 다음 명령어를 사용하여 MariaDB 셸에서 종료합니다:
MariaDB [(none)]> EXIT;Chevereto 다운로드
먼저, 다음 명령어를 사용하여 Apache 웹 루트 디렉토리 내에 Chevereto용 디렉토리를 생성합니다:
mkdir -p /var/www/html/chevereto/다음으로, Chevereto 디렉토리로 이동하고 다음 명령어를 사용하여 Chevereto의 최신 버전을 다운로드합니다:
cd /var/www/html/chevereto
wget https://github.com/rodber/chevereto-free/releases/download/1.6.0/1.6.0.zip다운로드가 완료되면, 다음 명령어를 사용하여 다운로드한 파일의 압축을 풉니다:
unzip 1.6.0.zip다음으로, Chevereto 디렉토리에 적절한 권한과 소유권을 설정합니다:
chown -R www-data:www-data /var/www/html/chevereto/
chmod -R 775 /var/www/html/chevereto/Chevereto를 위한 Apache 구성
다음으로, 다음 명령어를 사용하여 Chevereto용 Apache 가상 호스트 구성 파일을 생성합니다:
nano /etc/apache2/sites-available/chevereto.conf다음 구성을 추가합니다:
ServerAdmin [email protected]
ServerName chevereto.example.com
DocumentRoot /var/www/html/chevereto
ErrorLog ${APACHE_LOG_DIR}/chevereto.example.com_error.log
CustomLog ${APACHE_LOG_DIR}/chevereto.example.com_access.log combined
Options FollowSymlinks
AllowOverride All
Require all granted
작업이 완료되면 파일을 저장하고 닫습니다. 다음으로, 다음 명령어를 사용하여 Chevereto 가상 호스트를 활성화합니다:
a2ensite chevereto.conf다음으로, 다음 명령어를 사용하여 Apache 재작성 및 SSL 모듈을 활성화합니다:
a2enmod rewrite ssl마지막으로, 다음 명령어를 사용하여 변경 사항을 적용하기 위해 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 Sun 2022-08-28 07:22:12 UTC; 9s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 87027 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 87032 (apache2)
Tasks: 6 (limit: 2242)
Memory: 14.1M
CPU: 111ms
CGroup: /system.slice/apache2.service
??87032 /usr/sbin/apache2 -k start
??87033 /usr/sbin/apache2 -k start
??87034 /usr/sbin/apache2 -k start
??87035 /usr/sbin/apache2 -k start
??87036 /usr/sbin/apache2 -k start
??87037 /usr/sbin/apache2 -k start
Aug 28 07:22:12 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...
Chevereto 웹 인터페이스에 접근
이제 웹 브라우저를 열고 http://chevereto.example.com URL을 사용하여 Chevereto 웹 인터페이스에 접근합니다. 데이터베이스 구성 페이지로 리디렉션됩니다:

데이터베이스 정보를 제공하고 계속 버튼을 클릭합니다. 다음 페이지를 볼 수 있어야 합니다:


이제 관리자 사용자 이름, 비밀번호 및 웹사이트 모드를 제공한 후 Chevereto 설치 버튼을 클릭합니다. 설치가 완료되면 다음 페이지를 볼 수 있어야 합니다:

관리 대시보드 버튼을 클릭합니다. Chevereto 로그인 페이지를 볼 수 있어야 합니다:

관리자 사용자 이름, 비밀번호를 제공하고 > 버튼을 클릭합니다. 다음 페이지에서 Chevereto 대시보드를 볼 수 있어야 합니다:

Let’s Encrypt SSL로 Chevereto 보안
웹사이트를 Let’s Encrypt SSL로 보호하는 것도 권장됩니다. 먼저, 서버에 Certbot 클라이언트를 설치해야 합니다. 다음 명령어를 사용하여 설치할 수 있습니다:
apt-get install python3-certbot-apache -yCertbot이 설치되면, 다음 명령어를 실행하여 웹사이트를 Let’s Encrypt SSL로 보호합니다:
certbot --apache -d chevereto.example.com이메일을 제공하고 아래와 같이 서비스 약관에 동의하라는 메시지가 표시됩니다:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
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
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for chevereto.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/chevereto-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/chevereto-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/chevereto-le-ssl.conf
Next, select whether or not to redirect HTTP traffic to HTTPS as shown below:
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를 눌러 웹사이트에 Let’s Encrypt SSL을 설치합니다:
Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/chevereto.conf to ssl vhost in /etc/apache2/sites-available/chevereto-le-ssl.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://chevereto.example.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=chevereto.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/chevereto.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/chevereto.example.com/privkey.pem
Your cert will expire on 2022-11-29. 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
결론
축하합니다! 우분투 22.04에 Chevereto 이미지 호스팅 서버를 성공적으로 설치했습니다. 이제 서버에 이미지를 업로드하고 웹에서 어디서나 접근할 수 있습니다. 질문이 있으면 언제든지 문의해 주세요.
새 게시물을 받은 편지함에서 받기
스팸은 없습니다. 언제든지 구독 해지 가능합니다.