nextcloud
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| nextcloud [2022/08/22 17:59] – mho | nextcloud [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 | ||
| + | </ | ||
| 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. | ||
| + | < | ||
| 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! | ||
| + | </ | ||
| 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. | go a bit smoother. | ||
| production environment. | production environment. | ||
| + | < | ||
| Remove anonymous users? [Y/n] y | Remove anonymous users? [Y/n] y | ||
| ... Success! | ... Success! | ||
| + | </ | ||
| Normally, root should only be allowed to connect from ' | Normally, root should only be allowed to connect from ' | ||
| ensures that someone cannot guess at the root password from the network. | ensures that someone cannot guess at the root password from the network. | ||
| + | < | ||
| Disallow root login remotely? [Y/n] y | Disallow root login remotely? [Y/n] y | ||
| ... Success! | ... Success! | ||
| + | </ | ||
| By default, MariaDB comes with a database named ' | By default, MariaDB comes with a database named ' | ||
| access. | access. | ||
| before moving into a production environment. | before moving into a production environment. | ||
| + | < | ||
| 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! | ||
| + | </ | ||
| 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. | ||
| + | < | ||
| Reload privilege tables now? [Y/n] y | Reload privilege tables now? [Y/n] y | ||
| ... Success! | ... Success! | ||
| + | </ | ||
| Cleaning up... | Cleaning up... | ||
| Zeile 78: | Zeile 78: | ||
| Create Nextcloud database and user: | Create Nextcloud database and user: | ||
| + | < | ||
| $ sudo mysql -u root -p | $ sudo mysql -u root -p | ||
| CREATE USER ' | CREATE USER ' | ||
| Zeile 85: | Zeile 85: | ||
| FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
| QUIT | QUIT | ||
| + | </ | ||
| 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. | ||
| + | < | ||
| sudo apt -y install php php-{cli, | sudo apt -y install php php-{cli, | ||
| sudo apt -y install apache2 libapache2-mod-php | sudo apt -y install apache2 libapache2-mod-php | ||
| + | </ | ||
| Set PHP variables to suit your use. | Set PHP variables to suit your use. | ||
| + | < | ||
| $ sudo vim / | $ sudo vim / | ||
| date.timezone = Africa/ | date.timezone = Africa/ | ||
| Zeile 101: | Zeile 101: | ||
| post_max_size = 500M | post_max_size = 500M | ||
| max_execution_time = 300 | max_execution_time = 300 | ||
| + | </ | ||
| Restart apache2 service: | Restart apache2 service: | ||
| + | < | ||
| sudo systemctl restart apache2 | sudo systemctl restart apache2 | ||
| + | </ | ||
| 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. | ||
| + | < | ||
| sudo apt -y install wget curl unzip | sudo apt -y install wget curl unzip | ||
| wget https:// | wget https:// | ||
| unzip latest.zip | unzip latest.zip | ||
| rm -f latest.zip | rm -f latest.zip | ||
| + | </ | ||
| 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. | ||
| + | < | ||
| sudo mv nextcloud / | sudo mv nextcloud / | ||
| sudo chown -R www-data: | sudo chown -R www-data: | ||
| sudo sudo chmod -R 755 / | sudo sudo chmod -R 755 / | ||
| + | </ | ||
| Disable default Apache server configuration | Disable default Apache server configuration | ||
| + | < | ||
| sudo a2dissite 000-default.conf | sudo a2dissite 000-default.conf | ||
| sudo rm / | sudo rm / | ||
| sudo systemctl restart apache2 | sudo systemctl restart apache2 | ||
| + | </ | ||
| 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: | ||
| + | < | ||
| Database name: nextcloud | Database name: nextcloud | ||
| Database password: nextcloud | Database password: nextcloud | ||
| Database user: StrongDBP@SSwo$d | Database user: StrongDBP@SSwo$d | ||
| + | </ | ||
| 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 | ||
| Zeile 154: | Zeile 154: | ||
| More guides will be done on Nextcloud storage sync solution. Stay connected. | More guides will be done on Nextcloud storage sync solution. Stay connected. | ||
| - | </ | + | |
nextcloud.1661183942.txt.gz · Zuletzt geändert: 2022/08/22 17:59 von mho