Hallo, ich habe vor paar Wochen NC 35.0.1.1 auf Ubuntu Server 26.04 installiert.
Nextcloud lĂ€uft ĂŒber Apache2 und PHP8.5.4.
Jetzt habe ich die App Client-push als App installiert und meine Dateien sehen jetzt so aus:
Die relevanten Daten durch âxxxâ ersetzt.
Die config.php:
<?php
/*
* WARNING
*
* This file gets modified by automatic processes and all lines that are not
* active code (ie. comments) are lost during that process.
*
* If you want to document things with comments or use constants add your settings
* in a '<NAME>.config.php' file which will be included and rendered into this file.
*
* Example:
* <?php
* $CONFIG = [];
*
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
*/
$CONFIG = array (
'maintenance_window_start' => '22',
'instanceid' => 'xxxx',
'passwordsalt' => 'xxxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'xxx',
1 => 'xxx:myport',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '35.0.1.1',
'overwrite.cli.url' => 'https://myport',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'matti',
'dbpassword' => 'ggggg',
'installed' => true,
'maintenance' => false,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => '6379',
),
'memcache.local' => '\\OC\\Memcache\\APCu',
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
),
apache2: nextcloud.conf
<VirtualHost *:myport>
DocumentRoot /var/www/nextcloud/
#fuer client-push
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ http://127.0.0.1:7867/
ProxyPassReverse /push/ http://127.0.0.1:7867/
<Directory /var/www/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
AuthType Basic
Satisfy Any
<IfModule mod_dav.c>
Dav off
</IfModule>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
</Directory>
SSLEngine on
SSLCertificateFile xxx
SSLCertificateKeyFile xxx
</VirtualHost>
und die notify_push.service:
GNU nano 8.7.1 /etc/systemd/system/notify_push.service
[Unit]
Description = Push daemon for Nextcloud clients
After = redis-server.service mysql.service php8.1-fpm.service apache2.service
[Service]
Environment = PORT=7867
Environment = NEXTCLOUD_URL=https://xxx:myport
Environment = REDIS_URL=redis://127.0.0.1:6379
ExecStart = /var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud/config/config.php
User = www-data
[Install]
WantedBy = multi-user.target
Wenn ich jetzt:
sudo -u www-data php /var/www/nextcloud/occ notify_push:setup
ausfĂŒhre, dann zeigt es mir an, dass der Port besetzt ist.
Vielleicht könnte jemand ĂŒber meine Daten schauen ob ich nicht was falsch eingetragen hab.
Vorab vielen Dank.