Benutzer-Werkzeuge

Webseiten-Werkzeuge


nextcloud

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
nextcloud [2022/08/22 17:59] mhonextcloud [2022/08/22 18:02] (aktuell) mho
Zeile 12: Zeile 12:
 sudo apt update sudo apt update
 sudo apt -y install mariadb-server mariadb-client sudo apt -y install mariadb-server mariadb-client
 +</code>
 Secure your database installation by setting root password, disable remote root login and removing test databases. Secure your database installation by setting root password, disable remote root login and removing test databases.
  
Zeile 30: Zeile 30:
 Setting the root password ensures that nobody can log into the MariaDB Setting the root password ensures that nobody can log into the MariaDB
 root user without the proper authorisation. root user without the proper authorisation.
 +<code>
 Set root password? [Y/n] y Set root password? [Y/n] y
 New password:  New password: 
Zeile 37: Zeile 37:
 Reloading privilege tables.. Reloading privilege tables..
  ... Success!  ... Success!
 +</code>
  
 By default, a MariaDB installation has an anonymous user, allowing anyone By default, a MariaDB installation has an anonymous user, allowing anyone
Zeile 44: Zeile 44:
 go a bit smoother.  You should remove them before moving into a go a bit smoother.  You should remove them before moving into a
 production environment. production environment.
 +<code>
 Remove anonymous users? [Y/n] y Remove anonymous users? [Y/n] y
  ... Success!  ... Success!
 +</code>
 Normally, root should only be allowed to connect from 'localhost' This Normally, root should only be allowed to connect from 'localhost' This
 ensures that someone cannot guess at the root password from the network. ensures that someone cannot guess at the root password from the network.
 +<code>
 Disallow root login remotely? [Y/n] y Disallow root login remotely? [Y/n] y
  ... Success!  ... Success!
 +</code>
 By default, MariaDB comes with a database named 'test' that anyone can By default, MariaDB comes with a database named 'test' that anyone can
 access.  This is also intended only for testing, and should be removed access.  This is also intended only for testing, and should be removed
 before moving into a production environment. before moving into a production environment.
 +<code>
 Remove test database and access to it? [Y/n] y Remove test database and access to it? [Y/n] y
  - Dropping test database...  - Dropping test database...
Zeile 63: Zeile 63:
  - Removing privileges on test database...  - Removing privileges on test database...
  ... Success!  ... Success!
 +</code>
 Reloading the privilege tables will ensure that all changes made so far Reloading the privilege tables will ensure that all changes made so far
 will take effect immediately. will take effect immediately.
 +<code>
 Reload privilege tables now? [Y/n] y Reload privilege tables now? [Y/n] y
  ... Success!  ... Success!
 +</code>
 Cleaning up... Cleaning up...
  
Zeile 78: Zeile 78:
  
 Create Nextcloud database and user: Create Nextcloud database and user:
 +<code>
 $ sudo mysql -u root -p  $ sudo mysql -u root -p 
 CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'StrongDBP@SSwo$d'; CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'StrongDBP@SSwo$d';
Zeile 85: Zeile 85:
 FLUSH PRIVILEGES; FLUSH PRIVILEGES;
 QUIT QUIT
 +</code>
 Step 2: Install PHP and Apache web server Step 2: Install PHP and Apache web server
  
 We also need PHP and Apache webserver to run Nextcloud. Run the commands below to ensure these dependencies are installed. We also need PHP and Apache webserver to run Nextcloud. Run the commands below to ensure these dependencies are installed.
 +<code>
 sudo apt -y install php php-{cli,xml,zip,curl,gd,cgi,mysql,mbstring} sudo apt -y install php php-{cli,xml,zip,curl,gd,cgi,mysql,mbstring}
 sudo apt -y install apache2 libapache2-mod-php sudo apt -y install apache2 libapache2-mod-php
 +</code>
 Set PHP variables to suit your use. Set PHP variables to suit your use.
 +<code>
 $ sudo vim /etc/php/*/apache2/php.ini $ sudo vim /etc/php/*/apache2/php.ini
 date.timezone = Africa/Nairobi date.timezone = Africa/Nairobi
Zeile 101: Zeile 101:
 post_max_size = 500M post_max_size = 500M
 max_execution_time = 300 max_execution_time = 300
 +</code>
 Restart apache2 service: Restart apache2 service:
 +<code>
 sudo systemctl restart apache2 sudo systemctl restart apache2
 +</code>
 Step 3: Download Nextcloud on Debian 11 / Debian 10 Step 3: Download Nextcloud on Debian 11 / Debian 10
  
 With all dependencies installed, we can proceed to download the latest Nextcloud archive to our local system. Visit Nextcloud releases page to check the latest release. With all dependencies installed, we can proceed to download the latest Nextcloud archive to our local system. Visit Nextcloud releases page to check the latest release.
 +<code>
 sudo apt -y install wget curl unzip sudo apt -y install wget curl unzip
 wget https://download.nextcloud.com/server/releases/latest.zip wget https://download.nextcloud.com/server/releases/latest.zip
 unzip latest.zip unzip latest.zip
 rm -f latest.zip rm -f latest.zip
 +</code>
 Unzip the archive and move to Apache web folder and set correct ownership and permissions. Unzip the archive and move to Apache web folder and set correct ownership and permissions.
 +<code>
 sudo mv nextcloud /var/www/html/ sudo mv nextcloud /var/www/html/
 sudo chown -R www-data:www-data /var/www/html/nextcloud sudo chown -R www-data:www-data /var/www/html/nextcloud
 sudo sudo chmod -R 755 /var/www/html/nextcloud sudo sudo chmod -R 755 /var/www/html/nextcloud
 +</code>
 Disable default Apache server configuration Disable default Apache server configuration
 +<code>
 sudo a2dissite 000-default.conf sudo a2dissite 000-default.conf
 sudo rm /var/www/html/index.html sudo rm /var/www/html/index.html
 sudo systemctl restart apache2 sudo systemctl restart apache2
 +</code>
 Step 4: Run Nextcloud Web Installer on Debian 11 / Debian 10 Step 4: Run Nextcloud Web Installer on Debian 11 / Debian 10
  
Zeile 142: Zeile 142:
  
 There are the details during database creation: There are the details during database creation:
 +<code>
 Database name: nextcloud Database name: nextcloud
 Database password: nextcloud Database password: nextcloud
 Database user: StrongDBP@SSwo$d Database user: StrongDBP@SSwo$d
 +</code>
 Click the “Finish setup” button to complete the installation of Nextcloud on Debian 10 / Debian 11. Click the “Finish setup” button to complete the installation of Nextcloud on Debian 10 / Debian 11.
 install nextcloud debian 10 05 install nextcloud debian 10 05
nextcloud.1661183956.txt.gz · Zuletzt geändert: 2022/08/22 17:59 von mho

Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki