Skip to content

Instantly share code, notes, and snippets.

@foi
foi / gist:5319e11993fc84b6d2e3c5a871217967
Created August 13, 2020 13:25
Установка nextcloud 19 - nginx + php-fpm на ubuntu 20.04
# Устанавливаем зависимости
sudo su
apt-get install php zip libapache2-mod-php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-mysql php-bcmath php-gmp nginx php-fpm smbclient samba php-apcu php-opcache mariadb-server mariadb-client -y
# звдаем пароль для рута
mysql_secure_installation
# Создаем БД и Юзера и даем ему права
mysql -u root -p
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'VsevolodOblako2121';