How to Install Nextcloud 22 on Debian 9
Import the GPG key and add the following Apt repository to your system.
sudo apt install ca-certificates apt-transport-https -y
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
Install PHP version 7.3
apt
install php7.3-cli php7.3-common php7.3-curl php7.3-mbstring
php7.3-mysql php7.3-xml php7.3-zip php7.3-gd ufw apache2 mariadb-server
-y
Start and enable service ufw, apache2, and mariadb
systemctl start ufw apache2 mariadb && systemctl enable ufw apache2 mariadb
Setup mariadb server
mysql_secure_installation
mysql -u root -p
On database
create database cloud;
create user 'cloud'@'localhost' IDENTIFIED BY 'password';
grant all privileges on cloud.* TO 'cloud'@'localhost';
flush privileges;
exit;
Go to directory /var/www
cd /var/www/
Download Nextcloud version 22.1.1.zip
wget https://download.nextcloud.com/server/releases/nextcloud-22.1.1.zip
Unzip nextcloud-22.1.1.zip
apt install unzip -y
unzip nextcloud-18.0.1.zip
Rename nextcloud to cloud name
mv nextcloud cloud
Create folder data in folder cloud. Make sure you are in the directory /var/www/cloud
mkdir -p cloud/data
Give Access the folder cloud
chown -R www-data:www-data /var/www/cloud
Go to directory apache2
cd /etc/apache2/sites-available/
Copy default conf to cloud.conf (name)
cp 000-default.conf cloud.conf
Edit file cloud.conf
nano cloud.conf
---------------------------------------
ServerName 10.10.10.248
ServerAdmin webmaster@localhost
DocumentRoot /var/www/cloud
---------------------------------------
Exit, press CTRL + X and then y, enter
Follow instructions bellow
a2dissite 000-default.conf
a2ensite cloud.conf
service apache2 reload
ufw allow http && ufw allow 3306/tcp && ufw reload
Now open your browser
Type 10.10.10.248
Enter
Watch The Video

Comments
Post a Comment