インストールガイド · 5 min read · Dec 18, 2025
Ubuntu 22.04にFileRunをインストールする方法

FileRunは、Linuxベースのオペレーティングシステム用のオープンソースでウェブベースのファイル共有アプリケーションです。Google Drive、iCloud、DropBoxに非常に似ており、ユーザーがインターネットを介してファイルを共有および同期できるようにします。モバイルアプリ、WebDAV、およびウェブブラウザを介してアクセスできます。クラウド上で独自のファイル共有ソリューションをホストし、安全なクラウドストレージを介してどこからでもすべてのファイルにアクセスできます。
この記事では、Ubuntu 22.04にApacheとLet’s Encrypt SSLを使用してFileRunをインストールする方法を示します。
前提条件
- Ubuntu 22.04を実行しているサーバー。
- サーバーIPにポイントされた有効なドメイン名。
- サーバーに設定されたrootパスワード。
Apache、MariaDB、およびPHPのインストール
FileRunはPHPで書かれており、MariaDBをデータベースバックエンドとして使用しています。したがって、サーバーにApache、MariaDB、PHPおよびその他のパッケージをインストールする必要があります。最初に、次のコマンドを使用してApacheとMariaDBパッケージをインストールします:
apt-get install apache2 mariadb-server mariadb-client両方のパッケージをインストールした後、サーバーにPHPバージョンphp7.2-php7.4をインストールする必要があります。ただし、Ubuntu 22.04にはデフォルトリポジトリにPHP 8.1バージョンが含まれています。したがって、サーバーにPHP Ondrejリポジトリを追加する必要があります。
最初に、次のコマンドを使用して必要な依存関係をすべてインストールします:
apt install software-properties-common ca-certificates lsb-release apt-transport-https -y次に、次のコマンドを使用してPHPリポジトリを追加します:
add-apt-repository ppa:ondrej/php次に、リポジトリキャッシュを更新し、次のコマンドを使用してPHPとその他の必要な拡張機能をインストールします:
apt update
apt install php7.4 libapache2-mod-php7.4 imagemagick ffmpeg php7.4-imagick php7.4-mysql php7.4-fpm php7.4-common php7.4-gd php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl unzip -yすべてのパッケージがインストールされたら、システムにIonCubeローダーをインストールする必要があります。
最初に、次のコマンドを使用してIonCubeローダーをダウンロードします:
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz次に、次のコマンドを使用してダウンロードしたファイルを抽出します:
tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib/php次に、ioncube構成ファイルを作成し、IonCubeソースのパスを定義します:
nano /etc/php/7.4/apache2/conf.d/00-ioncube.ini次の行を追加します:
zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_7.4.so
ファイルを保存して閉じたら、FileRun用のPHP構成ファイルを作成します:
nano /etc/php/7.4/apache2/conf.d/filerun.ini次の設定を追加します:
expose_php = Off
error_reporting = E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = Off
allow_url_fopen = On
allow_url_include = Off
variables_order = "GPCS"
allow_webdav_methods = On
memory_limit = 128M
max_execution_time = 300
output_buffering = Off
output_handler = ""
zlib.output_compression = Off
zlib.output_handler = ""
safe_mode = Off
register_globals = Off
magic_quotes_gpc = Off
upload_max_filesize = 20M
post_max_size = 20M
enable_dl = Off
disable_functions = ""
disable_classes = ""
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_httponly = 1
date.timezone = "UTC"
ファイルを保存して閉じたら、変更を適用するためにApacheサービスを再起動します:
systemctl reload apache2FileRun用のデータベースを作成
最初に、次のコマンドを使用してMariaDBインストールを保護し、rootパスワードを設定します:
mysql_secure_installation以下のようにすべての質問に答えます:
Enter current password for root (enter for none): PRESS ENTER
Set root password? [Y/n] Y
New password:
Re-enter 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 filerun;
MariaDB [(none)]> CREATE USER 'filerun'@'localhost' IDENTIFIED BY 'password';次に、次のコマンドを使用してFileRunデータベースにすべての権限を付与します:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON filerun.* TO 'filerun'@'localhost';次に、権限をフラッシュし、次のコマンドでMariaDBから退出します:
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;作業が完了したら、次のステップに進むことができます。
FileRunをダウンロード
最初に、次のコマンドを使用して公式ウェブサイトからFileRunの最新バージョンをダウンロードします:
wget -O FileRun.zip https://filerun.com/download-latestFileRunがダウンロードされたら、次のコマンドを使用してダウンロードしたファイルを解凍します:
unzip FileRun.zip -d /var/www/html/filerun/次に、次のコマンドを使用して適切な権限と所有権を設定します:
chown -R www-data:www-data /var/www/html/filerun
chmod -R 755 /var/www/html/filerun作業が完了したら、次のステップに進むことができます。
FileRun用のApache仮想ホストを作成
次に、FileRun用のApache仮想ホスト構成ファイルを作成する必要があります。次のコマンドを使用して作成できます:
nano /etc/apache2/sites-available/filerun.conf次の行を追加します:
ServerName filerun.example.com
DocumentRoot /var/www/html/filerun
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
ErrorLog ${APACHE_LOG_DIR}/filerun.error.log
CustomLog ${APACHE_LOG_DIR}/filerun.access.log combined
ファイルを保存して閉じたら、次のコマンドを使用してApache仮想ホストを有効にし、Apacheリライトモジュールを有効にします:
a2ensite filerun.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 Sat 2022-08-06 09:26:00 UTC; 7s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 21189 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 21193 (apache2)
Tasks: 6 (limit: 2242)
Memory: 14.6M
CPU: 112ms
CGroup: /system.slice/apache2.service
??21193 /usr/sbin/apache2 -k start
??21194 /usr/sbin/apache2 -k start
??21195 /usr/sbin/apache2 -k start
??21196 /usr/sbin/apache2 -k start
??21197 /usr/sbin/apache2 -k start
??21198 /usr/sbin/apache2 -k start
Aug 06 09:26:00 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...
作業が完了したら、次のステップに進むことができます。
FileRun Web UIにアクセス
今、ウェブブラウザを開き、URL http://filerun.example.comを使用してFileRunのWeb UIにアクセスします。次のページにリダイレクトされます:

次へボタンをクリックします。サーバー要件チェックページが表示されるはずです:

次へボタンをクリックします。データベース構成ページが表示されるはずです:

次へボタンをクリックします。インストールが完了すると、次のページが表示されるはずです:

次へボタンをクリックします。FileRunのログインページが表示されるはずです:

管理者ユーザー名、パスワードを入力し、サインインボタンをクリックします。次のページにFileRunダッシュボードが表示されるはずです:

Let’s Encrypt SSLでFileRunを保護
Let’s Encrypt SSLでウェブサイトを保護することをお勧めします。最初に、サーバーにCertbotクライアントをインストールする必要があります。次のコマンドを使用してインストールできます:
apt-get install python3-certbot-apache -yCertbotがインストールされたら、次のコマンドを実行してLet’s Encrypt SSLでウェブサイトを保護します:
certbot --apache -d filerun.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 filerun.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/filerun-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/filerun-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/filerun-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/filerun.conf to ssl vhost in /etc/apache2/sites-available/filerun-le-ssl.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://filerun.example.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=filerun.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/filerun.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/filerun.example.com/privkey.pem
Your cert will expire on 2022-4-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
結論
おめでとうございます!Ubuntu 22.04にApacheとLet’s Encrypt SSLを使用してFileRunを正常にインストールしました。これで、クラウド上で独自のFileRunサーバーをホストし、友人や家族とファイル、音楽、写真を共有および同期を開始できます。
新しい投稿を受信箱で受け取る
スパムはありません。いつでも購読を解除できます。