Hola !
Acabo de actualizar nextcloud y no registra la existencia de php8.1 y continúa utilizando php8.0 ( o eso es lo que dice el mensaje del aviso de seguridad ) :
PHP 8.0 es obsoleto en Nextcloud 27. Nextcloud 28 podría requerir al menos PHP 8.1. Por favor, actualice a una de las versiones oficialmente soportadas de PHP provistas por PHP Group ↗ tan pronto sea posible.
Nextcloud version : 27.1.6
Operating system and version : GNU/Linux Debian 10
Apache version : 2.4.38
PHP version : 8.1 ( aún está instalada también la versión 8.0 )
The issue you are facing:
Al habilitar la versión 8.1 de php aparece el siguiente mensaje al ingresar :
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Is this the first time you’ve seen this error? : Yes
Steps to replicate it:
Ejecuto los siguientes comandos para utilizar php8.1
- root@nextcloud:~# a2dismod php8.0
- root@nextcloud:~# a2enmod php8.1
- root@nextcloud:~# systemctl restart apache2
Para resolverlo, deshabilito php8.1 y habilito php8.0
El contenido del archivo ‘config.php’ :
$CONFIG = array (
'maintenance' => false,
'instanceid' => '************',
'passwordsalt' => '***********',
'secret' => '**********',
'trusted_domains' =>
array (
1 => '**************',
),
'datadirectory' => '****************',
'memcache.local' => '\\OC\\Memcache\\APCu',
'dbtype' => 'mysql',
'version' => '27.1.6.2',
'overwrite.cli.url' => '**************',
'dbname' => '************',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => '****',
'mysql.utf8mb4' => true,
'dbuser' => '*************',
'dbpassword' => '***********',
'installed' => true,
'default_phone_region' => 'AR',
'htaccess.RewriteBase' => '/',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '***********',
'mail_domain' => '***********',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => '**********',
'mail_smtpport' => '587',
'mail_smtpname' => '************',
'mail_smtppassword' => '*********',
'loglevel' => 2,
'theme' => '',
'trashbin_retention_obligation' => 'auto, 180',
);
Contenido del archivo /var/log/apache2/error.log
:
[Sun Feb 11 13:53:42.709722 2024] [access_compat:error] [pid 752] [client 198.41.230.74:32344] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
[Sun Feb 11 14:08:12.005595 2024] [mpm_prefork:notice] [pid 455] AH00169: caught SIGTERM, shutting down
[Sun Feb 11 14:08:12.454762 2024] [mpm_prefork:notice] [pid 844] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Feb 11 14:08:12.454808 2024] [core:notice] [pid 844] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 11 14:09:04.232741 2024] [mpm_prefork:notice] [pid 844] AH00169: caught SIGTERM, shutting down
[Sun Feb 11 14:09:05.647107 2024] [mpm_prefork:notice] [pid 893] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Feb 11 14:09:05.647158 2024] [core:notice] [pid 893] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 11 14:10:48.881999 2024] [mpm_prefork:notice] [pid 893] AH00169: caught SIGTERM, shutting down
[Sun Feb 11 14:11:19.277541 2024] [mpm_prefork:notice] [pid 493] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Feb 11 14:11:19.312138 2024] [core:notice] [pid 493] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 11 14:15:03.525476 2024] [access_compat:error] [pid 636] [client 198.41.230.124:51962] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
[Sun Feb 11 14:38:05.824788 2024] [mpm_prefork:notice] [pid 493] AH00169: caught SIGTERM, shutting down
[Sun Feb 11 14:38:05.947563 2024] [mpm_prefork:notice] [pid 722] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Feb 11 14:38:05.947604 2024] [core:notice] [pid 722] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 11 14:40:00.324214 2024] [mpm_prefork:notice] [pid 722] AH00169: caught SIGTERM, shutting down
[Sun Feb 11 14:40:00.398576 2024] [mpm_prefork:notice] [pid 873] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Feb 11 14:40:00.398622 2024] [core:notice] [pid 873] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 11 14:43:54.587681 2024] [access_compat:error] [pid 887] [client 198.41.233.5:10744] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
No hay registros de error en ‘nextcloud.log’ relacionados ( por ejemplo si dice que no puede actualizar el plugin ransomware ).
Cualquier información acerca de como lograr habilitar php8.1 será muy bienvenida !
Toda otra información que fuera relevante y no haya incluído, por favor avisar y lo envío.
Muchas gracias al que se tome la molestia de leerlo y contestar.