Seite anzeigenÄltere VersionenLinks hierherNach oben Diese Seite ist nicht editierbar. Sie können den Quelltext sehen, jedoch nicht verändern. Kontaktieren Sie den Administrator, wenn Sie glauben, dass hier ein Fehler vorliegt. ==== Installation von Nextcloud auf bare metal ==== Manchmal möchte man eine nextcloud auch direkt auf einem Server betreiben. Hier eine Anleitung zur Installation dazu. === Requirements installieren === <code>apt install -y php php-curl php-cli php-mysql php-gd php-common php-xml php-json php-intl php-pear php-imagick php-dev php-common php-mbstring php-zip php-soap php-bz2 php-bcmath php-gmp php-apcu libmagickcore-dev php-ldap apache2</code> \\ Datenbank installieren <code>apt install mariadb-server mariadb-client</code> \\ Nextcloud downloaden <code>cd /var/www/</code> <code>wget https://download.nextcloud.com/server/releases/latest.zip</code> \\ Nextcloud entpacken und Rechte anpassen <code>unzip latest.zip</code> <code>chown -R www-data: nextcloud</code> \\ === Datenbank einrichten === MariaDB root Passwort festlegen <code>mysql_secure_installation</code> \\ Datenbank und Benutzer erstellen <code>mariadb -u root -p</code> <code> CREATE DATABASE nextcloud_db; CREATE USER nextclouduser@localhost IDENTIFIED BY 'PASSWORT'; GRANT ALL PRIVILEGES ON nextcloud_db.* TO nextclouduser@localhost; FLUSH PRIVILEGES; QUIT; </code> \\ === PHP anpassen === <code>sudo nano /etc/php/8.2/apache2/php.ini</code> <code> ... date.timezone = Europe/Berlin memory_limit = 512M upload_max_filesize = 500M post_max_size = 600M max_execution_time = 300 file_uploads = On allow_url_fopen = On display_errors = Off output_buffering = Off zend_extension=opcache opcache.enable = 1 opcache.interned_strings_buffer = 8 opcache.max_accelerated_files = 10000 opcache.memory_consumption = 128 opcache.save_comments = 1 opcache.revalidate_freq = 1 ... </code> <code>systemctl restart apache2</code> \\ === Apache Konfigurieren === Konfigurationsdatei für Nextcloud erstellen <code> cat << EOF > /etc/apache2/sites-available/nextcloud.conf <VirtualHost *:80> ServerName $(hostname -f) DocumentRoot /var/www/nextcloud/ # log files ErrorLog /var/log/apache2/nextcloud-error.log CustomLog /var/log/apache2/nextcloud-access.log combined <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory> </VirtualHost> EOF </code> <code>a2dissite 000-default.conf</code> <code>a2dissite default-ssl.conf</code> <code>a2ensite nextcloud.conf</code> <code>systemctl reload apache2</code> \\ === Nextcloud starten === {{ :home-harmening:tools:nextcloud:nexcloudinstallation.png?100|}} \\ \\ \\ \\ \\ \\ Url aufrufen [[http://127.0.0.1|http://meinserver.de]] Admin Konto anlegen und restliche Konfiguration durchführen \\ \\ \\ \\ \\ \\ \\ \\