This guide provides a straightforward approach to installing the
自己ホスト型生産性プラットフォームであるNextcloudの最新版を、
Ubuntu server. Nextcloud Hub 6 (27.1.3) offers file hosting,
プライベートサーバーの柔軟性を備えた、コラボレーションなど多くの機能が利用できます。
Prerequisites
-
Ubuntu 20.04 LTS以降が実行されているサーバー。
-
コマンドラインインターフェースの基本的な操作知識。
Installation Process
次の手順に従って、Nextcloud Hub 6 (27.1.3)をUbuntuにインストールします。
server:
Step 1: Update Your
Server
Ensure your server’s package list and the system itself are up to
date:
sudo apt update && sudo apt upgrade -y
Step 2: Install Apache
Web Server
Install Apache, which will serve your Nextcloud files:
sudo apt install apache2 -y
Step 3:
Install PHP and Required PHP Modules
NextcloudはPHPの実行が必要です。PHPと必要な
modules:
sudo apt install php libapache2-mod-php php-mysql php-dom php-xml php-mbstring php-gd php-curl php-zip -y
Step 4: Install MariaDB
Server
Nextcloudのデータを保存するためのデータベースサーバーであるMariaDBをインストールします。
sudo apt install mariadb-server -y
Step 5: Create a
Database for Nextcloud
まずMariaDBシェルにログインします。
sudo mariadb -u root -p
ログイン後、Nextcloud用のデータベースと、
desired credentials:
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'your_desired_username'@'localhost' IDENTIFIED BY 'your_desired_password';
FLUSH PRIVILEGES;
EXIT;

Step 6:
Install Unzip, and Download Nextcloud
Nextcloudをダウンロードする前に、unzipがインストールされていることを確認してください。
extract the downloaded file:
sudo apt install unzip -y
wget https://download.nextcloud.com/server/releases/nextcloud-27.1.3.zip
Step 7:
Extract Nextcloud and Set Permissions
Unzip the Nextcloud package to the web root directory and set the
correct permissions:
unzip nextcloud-27.1.3.zip -d /var/www/html/
sudo chown -R www-data:www-data /var/www/html/nextcloud/

Step 8: Configure
Apache for Nextcloud
Nextcloud用のApache設定ファイルを作成します。
sudo nano /etc/apache2/sites-available/nextcloud.conf
次の設定を挿入してファイルを保存します。
Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
新しいサイトとリライトモジュールを有効にします。
sudo a2ensite nextcloud
sudo a2enmod rewrite
sudo systemctl restart apache2
Step
9: Complete the Installation Through the Web Interface
Open your web browser and navigate to
http://your_server_ip/nextcloudセットアップを完了してください。
providing the following information:
-
Admin account details: Choose a username and
Nextcloud管理者CDアカウントのパスワード。 -
Data folder: Confirm the path to the data folder
where Nextcloud will store its files. -
Database configuration: Enter the credentials
作成したデータベースユーザーと名前を指定します。
localhost for the database host unless your database is
別のサーバー上で実行します。

After entering the details, click the Finish setup
button to complete the installation and then navigate to
http://your_server_ip/nextcloud/index.php/login if you
didn’t redirect automatically.

Nextcloud Hub 6 (27.1.3)の実行インスタンスがUbuntuで立ち上がりました。
Ubuntuサーバーのダッシュボードを探索し、
Nextcloud環境を個人またはビジネスのニーズに合わせて設定してください。詳しい情報や
さらにサポートが必要な場合は、お気軽にお問い合わせください。
our support team by submitting a
ticket.
Also in Initial Documents
Related guides.
Need help with something else?
Median response time under 1 hour. Real humans, not bots.