Hallo an alle,
Installation nicht möglich mit einem LXC-Container Proxmox.
RAM = 4096MB
SWAP = 4096MB
Core = 4
IP = privat/24
Gateway = privat
DNS = privat
lxc-attach --name xxx
nano /etc/ssh/sshd_config
mkdir /mnt/hdd1
apt-get update
apt-get upgrade
apt-get install lamp-server^
apt-get install php-zip php-dompdf php-xml php-mbstring php-gd php-curl php-imagick php-intl unzip
php ini datei anpassen etc/php/7.2/apache2/php.ini
cd /etc/php/8.1/apache2/
nano php.ini
mysql
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password by ‘mynewpassword’;
exit;
mysql_secure_installation
validate password “no”
remove anonymous “yes”
root remote login disable “yes”
remove test datenbank “yes”
mysql -u root -p
create database nextcloud;
create user ‘nextclouduser’@'localhost’IDENTIFIED BY ‘mynewpassword’;
SHOW GRANTS FOR ‘nextclouduser’@‘localhost’;
GRANT ALL PRIVILEGES ON nextcloud.* TO ‘nextclouduser’@‘localhost’ WITH GRANT OPTION;
flush privileges;
exit;
cd /tmp
wget https://download.nextcloud.com/server/releases/latest.zip
unzip latest.zip
mv nextcloud /var/www/
cd /etc/apache2/sites-available
touch nextcloud.conf
nano /etc/apache2/sites-available/nextcloud.conf
<VirtualHost *:80>
ServerAdmin master@domain.com
DocumentRoot /var/www/nextcloud/
ServerName nc.local
ServerAlias www.demo.domain.com
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
a2ensite nextcloud.conf
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
a2dissite 000-default.conf
systemctl reload apache2
cd /mnt/hdd1
rm -r lost+found
ls
cd /
chown -R www-data:www-data /mnt/hdd1
chown -R www-data:www-data /var/www/nextcloud/
chown -R 755 /var/www/nextcloud/
Fehler:
Interner Serverfehler
Der Server konnte die Anfrage nicht fertig stellen.
Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an deinen Server-Administrator.
Weitere Details können im Server-Protokoll gefunden werden.
Technische Details
- Entfernte Adresse: privat
- Anfragekennung: bssw6CaEEOoVjg3RQk4Y
error.log
[mpm_prefork:notice] [pid 11631] AH00163: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[core:notice] [pid 11631] AH00094: Command line: ‘/usr/sbin/apache2’
[mpm_prefork:notice] [pid 11631] AH00171: Graceful restart requested, doing restart
[mpm_prefork:notice] [pid 11631] AH00163: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[core:notice] [pid 11631] AH00094: Command line: ‘/usr/sbin/apache2’
[php:notice] [pid 15561] [client 192.xxx.xxx.xx:41136] {“reqId”:“cufWeIAnfftR2sZjFGTs”,“level”:3,“time”:“2022-09-02T20:59:15+00:00”,“remoteAddr”:“xxx.xxx.xxx.xxx”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/”,“message”:“touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#263”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#263”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\\Log\\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/Config.php”,“line”:263,“function”:“touch”},{“file”:“/var/www/nextcloud/lib/private/Config.php”,“line”:143,“function”:“writeData”,“class”:“OC\\Config”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/SystemConfig.php”,“line”:142,“function”:“setValue”,“class”:“OC\\Config”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Util.php”,“line”:906,“function”:“setValue”,“class”:“OC\\SystemConfig”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:427,“function”:“getInstanceId”,“class”:“OC_Util”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:659,“function”:“initSession”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1104,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/index.php”,“line”:34,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
Gruß
Pong