Nextcloud version: 25.0.13
Operating system and version: Ubuntu 20.04.1 LTS
Apache or nginx version: Apache 2.4.41
PHP version: Installed on the machine: 7.4.33 (also installed 8.1 and 8.2)
When I log into the Nextcloud service as an administrator, I get the following warning: “Stai eseguendo attualmente PHP 7.4.33. Aggiorna la tua versione di PHP per trarre vantaggio dagli aggiornamenti in termini di prestazioni e sicurezza forniti dal PHP Group non appena la tua distribuzione la supporta.”
I try a : a2enmod php8.1 the command run, then i try a systemctl restart apache2 and the command fail with this exit status:
Job for apache2.service failed because the control process exited with error code.
See “systemctl status apache2.service” and “journalctl -xe” for details.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-06-05 12:40:36 CEST; 4s ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 636901 ExecStart=/usr/sbin/apachectl start (code=exited, status=139)
Jun 05 12:40:36 xcloud systemd[1]: Starting The Apache HTTP Server…
Jun 05 12:40:36 xcloud apachectl[636916]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.>
Jun 05 12:40:36 xcloud apachectl[636901]: Segmentation fault (core dumped)
Jun 05 12:40:36 xcloud apachectl[636901]: Action ‘start’ failed.
Jun 05 12:40:36 xcloud apachectl[636901]: The Apache error log may have more information.
Jun 05 12:40:36 xcloud systemd[1]: apache2.service: Control process exited, code=exited, status=139/n/a
Jun 05 12:40:36 xcloud systemd[1]: apache2.service: Failed with result ‘exit-code’.
Jun 05 12:40:36 xcloud systemd[1]: Failed to start The Apache HTTP Server.
The apache2 error log say:
[Wed Jun 05 00:00:17.839045 2024] [ssl:warn] [pid 1406] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 00:00:17.839212 2024] [http2:warn] [pid 1406] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20190902/imagick.so (/usr/lib/php/20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/imagick.so.so (/usr/lib/php/20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Wed Jun 05 00:00:17.893385 2024] [mpm_prefork:notice] [pid 1406] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured – resuming normal operations
[Wed Jun 05 00:00:17.893405 2024] [core:notice] [pid 1406] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Jun 05 04:19:57.920046 2024] [php7:error] [pid 477467] [client ] script ‘/var/www/upl.php’ not found or unable to stat
[Wed Jun 05 04:19:58.731915 2024] [php7:error] [pid 463433] [client ] script ‘/var/www/1.php’ not found or unable to stat
[Wed Jun 05 04:19:59.566752 2024] [php7:error] [pid 463438] [client ] script ‘/var/www/password.php’ not found or unable to stat
[Wed Jun 05 04:19:59.781886 2024] [php7:error] [pid 463388] [client ] script ‘/var/www/info.php’ not found or unable to stat
[Wed Jun 05 07:26:55.859315 2024] [core:error] [pid 467647] [client ] AH00126: Invalid URI in request HEAD /icons/.%2e/%2e%2e/apache2/icons/sphere1.png HTTP/1.1
[Wed Jun 05 11:49:46.120417 2024] [mpm_prefork:notice] [pid 1406] AH00169: caught SIGTERM, shutting down
[Wed Jun 05 11:49:47.260133 2024] [ssl:warn] [pid 624152] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:51:14.046902 2024] [ssl:warn] [pid 624234] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:51:14.057999 2024] [ssl:warn] [pid 624235] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:51:14.058456 2024] [http2:warn] [pid 624235] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20190902/imagick.so (/usr/lib/php/20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/imagick.so.so (/usr/lib/php/20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Wed Jun 05 11:51:14.098577 2024] [mpm_prefork:notice] [pid 624235] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured – resuming normal operations
[Wed Jun 05 11:51:14.098610 2024] [core:notice] [pid 624235] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Jun 05 11:54:32.688113 2024] [mpm_prefork:notice] [pid 624235] AH00169: caught SIGTERM, shutting down
[Wed Jun 05 11:54:32.754203 2024] [ssl:warn] [pid 625725] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:54:32.765407 2024] [ssl:warn] [pid 625730] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:54:32.765546 2024] [http2:warn] [pid 625730] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20190902/imagick.so (/usr/lib/php/20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/imagick.so.so (/usr/lib/php/20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Wed Jun 05 11:54:32.802346 2024] [mpm_prefork:notice] [pid 625730] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured – resuming normal operations
[Wed Jun 05 11:54:32.802381 2024] [core:notice] [pid 625730] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Jun 05 11:55:53.651076 2024] [mpm_prefork:notice] [pid 625730] AH00169: caught SIGTERM, shutting down
[Wed Jun 05 11:55:53.722702 2024] [ssl:warn] [pid 632225] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:55:53.733902 2024] [ssl:warn] [pid 632226] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 11:55:53.734031 2024] [http2:warn] [pid 632226] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20190902/imagick.so (/usr/lib/php/20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/imagick.so.so (/usr/lib/php/20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Wed Jun 05 11:55:53.772480 2024] [mpm_prefork:notice] [pid 632226] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured – resuming normal operations
[Wed Jun 05 11:55:53.772517 2024] [core:notice] [pid 632226] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Jun 05 12:36:01.166041 2024] [mpm_prefork:notice] [pid 632226] AH00169: caught SIGTERM, shutting down
[Wed Jun 05 12:36:01.249018 2024] [ssl:warn] [pid 636054] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 12:36:38.902433 2024] [ssl:warn] [pid 636110] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 12:36:38.914214 2024] [ssl:warn] [pid 636111] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 12:36:38.914351 2024] [http2:warn] [pid 636111] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20190902/imagick.so (/usr/lib/php/20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/imagick.so.so (/usr/lib/php/20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Wed Jun 05 12:36:38.953757 2024] [mpm_prefork:notice] [pid 636111] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured – resuming normal operations
[Wed Jun 05 12:36:38.953801 2024] [core:notice] [pid 636111] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed Jun 05 12:40:36.502256 2024] [mpm_prefork:notice] [pid 636111] AH00169: caught SIGTERM, shutting down
[Wed Jun 05 12:40:36.572297 2024] [ssl:warn] [pid 636916] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 12:41:08.718088 2024] [ssl:warn] [pid 636968] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 12:41:08.728614 2024] [ssl:warn] [pid 636969] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jun 05 12:41:08.728770 2024] [http2:warn] [pid 636969] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20190902/imagick.so (/usr/lib/php/20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/imagick.so.so (/usr/lib/php/20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Wed Jun 05 12:41:08.763791 2024] [mpm_prefork:notice] [pid 636969] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured – resuming normal operations
[Wed Jun 05 12:41:08.763822 2024] [core:notice] [pid 636969] AH00094: Command line: ‘/usr/sbin/apache2’
Is this the first time you’ve seen this error?: N
Steps to replicate it:
- a2enmod php8.1
- systemctl restart apache2
If i try a a2dismod php8.1 and a systemctl restart apache2 nextcloud work properly
The output of your Nextcloud log in Admin > Logging:
- La tua installazione non ha una regione telefonica predefinita impostata. Ciò è necessario per poter convalidare i numeri di telefono nelle impostazioni del profilo senza un codice nazionale. Per consentire i numeri senza un codice nazionale, aggiungi “default_phone_region” con il rispettivo codice ISO 3166-1
della regione desiderata al file di configurazione.
- Stai eseguendo attualmente PHP 7.4.33. Aggiorna la tua versione di PHP per trarre vantaggio dagli aggiornamenti in termini di prestazioni e sicurezza forniti dal PHP Group
non appena la tua distribuzione la supporta.
- Nel database mancano alcuni indici. Poiché l’aggiunta di indici su tabelle grandi può richiedere del tempo, non sono stati aggiunti automaticamente. Eseguendo “occ db:add-missing-indices”, gli indici mancanti possono essere aggiunti manualmente mentre l’istanza è in esecuzione. Una volta che gli indici sono stati aggiunti, le interrogazioni a tali tabelle sono solitamente più veloci.
- Indice mancante “fs_size” nella tabella “oc_filecache”.
- Indice mancante “fs_id_storage_size” nella tabella “oc_filecache”.
- Indice mancante “fs_parent” nella tabella “oc_filecache”.
- Indice mancante “cards_abiduri” nella tabella “oc_cards”.
- Indice mancante “properties_pathonly_index” nella tabella “oc_properties”.
- Indice mancante “job_lastcheck_reserved” nella tabella “oc_jobs”.
- Indice mancante “direct_edit_timestamp” nella tabella “oc_direct_edit”.
- Indice mancante “preferences_app_key” nella tabella “oc_preferences”.
- Indice mancante “mounts_class_index” nella tabella “oc_mounts”.
- Indice mancante “mounts_user_root_path_index” nella tabella “oc_mounts”.
- Indice mancante “systag_by_tagid” nella tabella “oc_systemtag_object_mapping”.
- Il modulo PHP “imagick” non è attivato sebbene l’app dei temi lo sia. Affinché la generazione di favicon funzioni bene, devi installare ed attivare questo modulo.
- In alcune colonne del database manca una conversione in big int. Poiché la modifica dei tipi di colonna su tabelle di grandi dimensioni potrebbe richiedere del tempo, non sono state modificate automaticamente. Eseguendo “occ db:convert-filecache-bigint” è possibile applicare manualmente le modifiche in sospeso. Questa operazione deve essere eseguita mentre l’istanza è offline. Per ulteriori dettagli leggi la pagina della documentazione relativa a questo
.
- federated_reshares.share_id
- files_trash.auto_id
- file_metadata.id
- share_external.id
- share_external.parent
Leggi attentamente le guide d’installazione , e controlla gli errori o gli avvisi nel log.
Controlla la sicurezza del tuo Nextcloud con la nostra scansione di sicurezza
Thank you in advance.
Gabriele.