diff --git a/linux/nextcloud_server.md b/linux/nextcloud_server.md index 3ca0190..8f81abc 100644 --- a/linux/nextcloud_server.md +++ b/linux/nextcloud_server.md @@ -515,18 +515,108 @@ PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS) psql (PostgreSQL) 15.3 (Debian 15.3-0+deb12u1) ``` +### Module "pdo_pgsql" is already loaded + +```bash + > php --ini +PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0 +Configuration File (php.ini) Path: /etc/php/8.2/cli +Loaded Configuration File: /etc/php/8.2/cli/php.ini +Scan for additional .ini files in: /etc/php/8.2/cli/conf.d +Additional .ini files parsed: /etc/php/8.2/cli/conf.d/10-opcache.ini, +/etc/php/8.2/cli/conf.d/10-pdo.ini, +/etc/php/8.2/cli/conf.d/15-xml.ini, +/etc/php/8.2/cli/conf.d/20-apcu.ini, +/etc/php/8.2/cli/conf.d/20-bcmath.ini, +/etc/php/8.2/cli/conf.d/20-bz2.ini, +/etc/php/8.2/cli/conf.d/20-calendar.ini, +/etc/php/8.2/cli/conf.d/20-ctype.ini, +/etc/php/8.2/cli/conf.d/20-curl.ini, +/etc/php/8.2/cli/conf.d/20-dom.ini, +/etc/php/8.2/cli/conf.d/20-exif.ini, +/etc/php/8.2/cli/conf.d/20-ffi.ini, +/etc/php/8.2/cli/conf.d/20-fileinfo.ini, +/etc/php/8.2/cli/conf.d/20-ftp.ini, +/etc/php/8.2/cli/conf.d/20-gd.ini, +/etc/php/8.2/cli/conf.d/20-gettext.ini, +/etc/php/8.2/cli/conf.d/20-gmp.ini, +/etc/php/8.2/cli/conf.d/20-iconv.ini, +/etc/php/8.2/cli/conf.d/20-imagick.ini, +/etc/php/8.2/cli/conf.d/20-intl.ini, +/etc/php/8.2/cli/conf.d/20-mbstring.ini, +/etc/php/8.2/cli/conf.d/20-pdo_pgsql.ini, +/etc/php/8.2/cli/conf.d/20-pdo_sqlite.ini, +/etc/php/8.2/cli/conf.d/20-pgsql.ini, +/etc/php/8.2/cli/conf.d/20-phar.ini, +/etc/php/8.2/cli/conf.d/20-posix.ini, +/etc/php/8.2/cli/conf.d/20-readline.ini, +/etc/php/8.2/cli/conf.d/20-shmop.ini, +/etc/php/8.2/cli/conf.d/20-simplexml.ini, +/etc/php/8.2/cli/conf.d/20-sockets.ini, +/etc/php/8.2/cli/conf.d/20-sqlite3.ini, +/etc/php/8.2/cli/conf.d/20-sysvmsg.ini, +/etc/php/8.2/cli/conf.d/20-sysvsem.ini, +/etc/php/8.2/cli/conf.d/20-sysvshm.ini, +/etc/php/8.2/cli/conf.d/20-tokenizer.ini, +/etc/php/8.2/cli/conf.d/20-xmlreader.ini, +/etc/php/8.2/cli/conf.d/20-xmlwriter.ini, +/etc/php/8.2/cli/conf.d/20-xsl.ini, +/etc/php/8.2/cli/conf.d/20-zip.ini +``` + +Semplicemente, commentare l'ultima riga del file: + +```bash + > cat /etc/php/8.2/cli/conf.d/20-pdo_pgsql.ini +; configuration for php pgsql module +; priority=20 +;extension=pdo_pgsql.so +``` + +Vedere anche: [https://stackoverflow.com/questions/32764981/php-warning-module-already-loaded-in-unknown-on-line-0](https://stackoverflow.com/questions/32764981/php-warning-module-already-loaded-in-unknown-on-line-0) + +### Invalid hash for mimetypelist.js + +Verificare l'integrità dei file col seguente comando: + +```bash +sudo -u www-data php /var/www/nextcloud/occ integrity:check-core +``` + +Da [https://github.com/nextcloud/server/tree/master/core/js](https://github.com/nextcloud/server/tree/master/core/js), copiare i file `mimetype.js` e `mimetypelist.js` in `/var/www/nextcloud/core/js` + +Assicurarsi che il proprietario sia `www-data`. + +Dare i seguenti comandi: + +```bash +sudo -u www-data php occ maintenance:mode --on. +sudo -u www-data php occ maintenance:mimetype:update-db --repair-filecache +sudo -u www-data php occ maintenance:mimetype:update-js +sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess +sudo -u www-data php occ maintenance:mode --off +``` + +Vedere anche: [https://help.nextcloud.com/t/solved-invalid-hash-for-mimetypelist-js/40680](https://help.nextcloud.com/t/solved-invalid-hash-for-mimetypelist-js/40680) + +Se si volesse disabilitare il controllo d'integrita' dei file, aggiungere al file `/var/www/nextcloud/config/config.php` la riga seguente: + +```bash +'integrity.check.disabled' => true, +``` + +## Upgrade manuale + +Seguire la seguente guida: [https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html) + ## Applicazioni consigliate - `Two-Factor TOTP Provider` per abilitare l'autenticazione a due fattori; -- `News` per un lettore di feed rss; - `GPodder Sync` per la sincronizzazione dei podcast tramite l'app per Android AntennaPod; -- `Default encryption module` per abilitare la cifratura dei file; - `Collabora Online - Built-in CODE Server` per un word processor (programma di videoscrittura); - `Bookmarks`; - `Brute-force settings` ([https://github.com/nextcloud/bruteforcesettings](https://github.com/nextcloud/bruteforcesettings)); - `GeoBlocker`; -- `UnifiedPush Provider`; -- `Keeweb` ## Applicazioni mobile