(20)
-- 1. 事前設定
sudo vim /etc/hosts
192.168.137.169 mmm169
sudo apt update && sudo apt upgrade
-- 2. Nextcloudのインストール
sudo snap install nextcloud
snap changes nextcloud
snap info nextcloud
snap connections nextcloud
-- 3. 管理アカウントの設定
sudo nextcloud.manual-install nextclouduser nextcloudpassword
-- 4. 信頼できるドメインの調整
sudo nextcloud.occ config:system:get trusted_domains
sudo nextcloud.occ config:system:set trusted_domains 1 --value='192.168.*.*'
sudo nextcloud.occ config:system:get trusted_domains
-- 5. 自己署名証明書を使用したSSLのセットアップ
sudo nextcloud.enable-https self-signed
-- 6. Nextcloud Webインターフェイスへのログイン
https://192.168.137.169
(10)
https://cloudcone.com/docs/article/how-to-install-nextcloud-on-debian-10/
-- 1. Prerequisites
vi /etc/hosts
192.168.137.180 mmm180
apt update && apt -y upgrade
-- 2. Install Apache webserver
apt -y install apache2 libapache2-mod-php
systemctl status apache2
-- 3. Install PHP
apt -y install php php-gd php-curl php-zip php-dom php-xml php-simplexml php-mbstring
php -v
-- 4. Install MariaDB database
apt -y install mariadb-server php-mysql
mysql -u root -p
CREATE DATABASE nextclouddb;
GRANT ALL ON nextclouddb.* TO 'nextclouddb'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;
-- 5. Download Nextcloud
cd /tmp
wget https://download.nextcloud.com/server/releases/nextcloud-16.0.1.zip
unzip nextcloud-16.0.1.zip
mv nextcloud /var/www/html
cd /var/www/html
chown -R www-data:www-data nextcloud
chmod -R 755 nextcloud
systemctl restart apache2
-- 6. Install Nextcloud via a browser
http://192.168.137.180/nextcloud/index.php
nextclouduser
nextcloudpassword
(7)
https://www.aska-ltd.jp/jp/blog/38
-- 1. 必要パッケージインストール
yum install -y epel-release yum-utils unzip curl wget bash-completion
yum update -y
-- 2. Apacheインストール
yum install -y httpd
vi /etc/httpd/conf.d/nextcloud.conf
DocumentRoot /var/www/html/
ServerName 192.168.137.127
<Directory /var/www/html/nextcloud>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
systemctl enable httpd.service
systemctl restart httpd.service
systemctl status httpd.service
-- 3. PHPインストール
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install -y php72w php72w-cli php72w-common php72w-curl php72w-gd php72w-mbstring \
php72w-mysqlnd php72w-process php72w-xml \
php72w-zip php72w-opcache php72w-pecl-apcu php72w-intl php72w-pecl-redis
yum install -y bzip2
-- 4. Nextcloudパッケージインストール
cd /tmp
wget https://download.nextcloud.com/server/releases/nextcloud-15.0.4.tar.bz2
wget https://download.nextcloud.com/server/releases/nextcloud-15.0.4.tar.bz2.md5
md5sum -c nextcloud-15.0.4.tar.bz2.md5 < nextcloud-15.0.4.tar.bz2
tar xf nextcloud-15.0.4.tar.bz2
cp -R nextcloud/ /var/www/html/
mkdir /var/www/html/nextcloud/data
chown -R apache:apache /var/www/html/nextcloud
systemctl restart httpd.service
systemctl status httpd.service
-- 5. MariaDBインストール
yum install -y mariadb mariadb-server
systemctl enable mariadb.service
systemctl restart mariadb.service
systemctl status mariadb.service
mysql_secure_installation
cp -pi /etc/my.cnf.d/server.cnf{,.orig}
vi /etc/my.cnf.d/server.cnf
[mariadb]
character-set-server = utf8mb4
[client]
# This group is not read by mysql client library,
# If you use the same .cnf file for MySQL and MariaDB,
# use it for MariaDB-only client options
[client-mariadb]
default-character-set = utf8mb4
systemctl restart mariadb
systemctl status mariadb
mysql -u root -p
show variables like "chara%";
CREATE DATABASE nextcloud DEFAULT CHARACTER SET utf8mb4;
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON nextcloud.* TO 'nextcloud'@'localhost';
SHOW GRANTS FOR 'nextcloud'@'localhost';
EXIT;
-- 6. Nextcloud Webインターフェイスへのログイン
http://192.168.137.127/nextcloud
nextclouduser
nextcloudpassword
- Windows Server
(2019)
サポートされていない模様