소셜 네트워크 · 7 min read · Dec 21, 2025

우분투 22.04에 Friendica 소셜 네트워크 플랫폼 설치하는 방법

Friendica는 이전에 Friendika로 알려졌던 오픈 소스 및 분산 통신 플랫폼으로, 웹에서 자신만의 소셜 네트워킹 플랫폼을 구축할 수 있게 해줍니다. 친구, 지인 또는 단순히 같은 관심사를 가진 사람들을 회원 그룹으로 연결하는 것을 목표로 합니다. Mastodon, Twitter 및 Diaspora와 같은 다른 소셜 네트워크 플랫폼의 대안 솔루션입니다. RSS/Atom 피드를 통해 웹사이트와 블로그를 소셜 스트림으로 가져올 수 있습니다.

이 가이드는 우분투 22.04에서 Apache와 함께 Friendica 소셜 네트워크를 설치하는 방법을 설명합니다.

필수 조건

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

시작하기

먼저, 다음 명령어를 사용하여 모든 시스템 패키지를 최신 버전으로 업데이트하고 업그레이드합니다:

apt update -y  
apt upgrade

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

Apache, MariaDB 및 PHP 설치

Friendica는 PHP로 작성되었으며 MySQL을 데이터베이스 백엔드로 사용합니다. 따라서 시스템에 LAMP 서버를 설치해야 합니다. 다음 명령어로 설치할 수 있습니다:

apt install apache2 mariadb-server php libapache2-mod-php php-common php-gmp php-curl php-intl php-mbstring php-xmlrpc php-mysql php-gd php-imagick php-xml php-cli php-zip php-sqlite3 curl git -y

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

nano /etc/php/8.1/apache2/php.ini

다음 줄을 변경합니다:

memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 300
max_input_vars = 1500
date.timezone = UTC

작업이 끝나면 파일을 저장하고 닫습니다.

MariaDB 데이터베이스 구성

다음으로, Friendica를 위한 데이터베이스와 사용자를 생성해야 합니다. 먼저, 다음 명령어로 MySQL에 연결합니다:

mysql

작업이 완료되면 다음 명령어로 데이터베이스와 사용자를 생성합니다:

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

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

MariaDB [(none)]> GRANT ALL ON friendica.* TO 'friendica'@'localhost' WITH GRANT OPTION;

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

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

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

우분투 22.04에 Friendica 설치

먼저, Git 리포지토리에서 Friendica의 최신 버전을 Apache 웹 루트 디렉토리에 다운로드합니다:

cd /var/www/html  
git clone https://github.com/friendica/friendica-addons.git -b stable

다운로드가 완료되면 friendica 디렉토리로 변경하고 다음 명령어로 필요한 PHP 종속성을 설치합니다:

cd friendica  
./bin/composer.phar install --no-dev

다음으로, 다음 명령어로 Friendica 애드온을 다운로드합니다:

git clone https://github.com/friendica/friendica-addons.git

다음으로, 애드온 디렉토리와 .htaccess 파일의 이름을 변경합니다.

mv friendica-addons addon  
mv .htaccess-dist .htaccess

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

chown -R www-data:www-data /var/www/html/friendica/  
chmod -R 755 /var/www/html/friendica/

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

Apache 가상 호스트 생성

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

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

다음 줄을 추가합니다:


     ServerAdmin [email protected]
     DocumentRoot /var/www/html/friendica
     ServerName friendica.linuxbuz.com


     
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
     

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


파일을 저장하고 닫은 후, 다음 명령어로 Apache 가상 호스트와 재작성 모듈을 활성화합니다:

a2ensite friendica.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 Wed 2022-12-21 10:33:18 UTC; 6s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 57027 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 57031 (apache2)
      Tasks: 6 (limit: 2238)
     Memory: 15.8M
        CPU: 43ms
     CGroup: /system.slice/apache2.service
             ??57031 /usr/sbin/apache2 -k start
             ??57032 /usr/sbin/apache2 -k start
             ??57033 /usr/sbin/apache2 -k start
             ??57034 /usr/sbin/apache2 -k start
             ??57035 /usr/sbin/apache2 -k start
             ??57036 /usr/sbin/apache2 -k start

Dec 21 10:33:18 ubuntu2204 systemd[1]: apache2.service: Deactivated successfully.
Dec 21 10:33:18 ubuntu2204 systemd[1]: Stopped The Apache HTTP Server.
Dec 21 10:33:18 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...

이 시점에서 Apache 웹 서버가 설치되고 구성되었습니다. 이제 다음 단계로 진행할 수 있습니다.

Let’s Encrypt SSL 설치

웹사이트를 Let’s Encrypt SSL로 보호하는 것은 항상 좋은 생각입니다. 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

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

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
Account registered.

다음으로, Let’s Encrypt SSL을 설치할 도메인을 선택하라는 메시지가 표시됩니다:

Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: friendica.linuxbuz.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1

기본 도메인을 선택하려면 1을 입력하고 Enter 키를 눌러 웹사이트에 SSL을 설치합니다.

Requesting a certificate for friendica.linuxbuz.com

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/friendica.linuxbuz.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/friendica.linuxbuz.com/privkey.pem
This certificate expires on 2023-03-21.
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 friendica.linuxbuz.com to /etc/apache2/sites-available/friendica-le-ssl.conf
Congratulations! You have successfully enabled HTTPS on https://friendica.linuxbuz.com
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.

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

Friendica 웹 UI에 접근

이제 웹 브라우저를 열고 URL https://friendica.linuxbuz.com를 사용하여 Friendica 웹 인터페이스에 접근합니다. 시스템 검사 페이지로 리디렉션됩니다:

모든 PHP 종속성이 설치되었는지 확인한 후 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

도메인 이름, 설치 경로를 제공하고 제출 버튼을 클릭합니다. 다음 페이지가 표시됩니다:

데이터베이스 이름, 데이터베이스 사용자 이름, 비밀번호를 제공하고 제출을 클릭합니다. 사이트 설정 페이지가 표시됩니다:

관리자의 이메일, 언어, 시간대를 제공하고 제출 버튼을 클릭합니다. 설치가 완료되면 다음 페이지가 표시됩니다:

이제 등록 페이지 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

필요한 모든 정보를 제공하고 지금 가입하기 버튼을 클릭합니다. 다음 페이지에 사용자 이름과 비밀번호가 표시됩니다.

이제 웹 브라우저를 열고 URL https://friendica.linuxbuz.com를 사용하여 Friendica 로그인 페이지에 접근합니다. Friendica 로그인 페이지가 표시됩니다.

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

결론

축하합니다! 우분투 22.04 서버에 Friendica 소셜 네트워크 플랫폼을 성공적으로 설치하고 구성했습니다. 이제 중앙 위치에서 소셜 네트워크 커뮤니티를 관리할 수 있습니다. 질문이 있으면 언제든지 물어보세요.

Share: X/Twitter LinkedIn

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

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