Install
Pakete installieren
sudo apt install sudo curl gpg -y
webserver installieren
apt install apache2
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt install php8.2 libapache2-mod-php8.2 php8.2-zip php-dompdf php8.2-xml php8.2-mbstring php8.2-gd php8.2-curl php8.2-imagick libmagickcore-6.q16-6-extra php8.2-intl php8.2-bcmath php8.2-gmp php8.2-cli php8.2-mysql php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl php8.2-xml php-pear unzip nano php8.2-apcu redis-server ufw php8.2-redis php8.2-smbclient php8.2-ldap
nano /etc/php/8.2/apache2/php.ini
hier ändern:
memory_limit = 2048M
upload_max_filesize = 20G
post_max_size = 20G
date.timezone = Europe/Berlin
output_buffering = Off
systemctl restart apache2.service
apt install mariadb-server
mysql_secure_installation
enter bis root passwort
root passwort ändern bzw erstellen und merken
wieder enter bis ende
mysql
CREATE DATABASE nextcloud;
CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'yourpassword';
passwort ändern
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
cd /temp
wget https://download.nextcloud.com/server...
unzip latest.zip
mv nextcloud /var/www/
nano /etc/apache2/sites-available/000-default.conf
documentroot ändern zu
/var/www/nextcloud
strg+x um wieder raus zu gehen
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
systemctl restart apache2.service
chown -R www-data:www-data /Daten/
chown -R www-data:www-data /var/www/nextcloud/
chmod -R 755 /var/www/nextcloud/
im Browser IP:
admin konto erstellen
datenbankpfad auf
/Daten
datenbankbenutzer ist
nextclouduser
passwort das eingestellte in der Konfig
Datenbank ist
nextcloud
Installieren drücken
No Comments