Probleme d'installation sous FreeBSD 13 - Mysql8 - PHP 8.0.6 - Apache24 et nextcloud-php80-21.0.0 (dans une Jail)

Bonjour,

Suite à l’installation de NextCloud 21 sous FreeBSD, je rencontre des problèmes juste apres l’install de type >

La page n’est pas redirigée correctement
Firefox a détecté que le serveur redirige la demande pour cette adresse d’une manière qui n’aboutira pas.

Idem sous Chrome.

L’install c’est bien déroulée. Mais je ne comprends pas d’où peut venir ce message.

Log Nexcloud >
{“reqId”:“6zVHQbJyW3Au4oNWFBpL”,“level”:3,“time”:“2021-06-03T18:25:24+00:00”,“remoteAddr”:“192.168.1.16”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/nextcloud/index.php",“message”:{“Exception”:“Error”,“Message”:“Function libxml_disable_entity_loader() is deprecated at /usr/local/www/nextcloud/lib/private/Installer.php#346”,“Code”:0,“Trace”:[{“file”:"/usr/local/www/nextcloud/lib/private/Installer.php",“line”:346,“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::"},{“file”:"/usr/local/www/nextcloud/lib/private/Installer.php",“line”:535,“function”:“downloadApp”,“class”:“OC\Installer”,“type”:"->"},{“file”:"/usr/local/www/nextcloud/lib/private/Setup.php",“line”:416,“function”:“installAppBundle”,“class”:“OC\Installer”,“type”:"->"},{“file”:"/usr/local/www/nextcloud/core/Controller/SetupController.php",“line”:75,“function”:“install”,“class”:“OC\Setup”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/usr/local/www/nextcloud/lib/base.php",“line”:932,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/usr/local/www/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/usr/local/www/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36”,“version”:“21.0.0.18”}

Log apache >
192.168.1.16 - - [03/Jun/2021:21:21:00 +0200] “GET /nextcloud/index.php/apps/files/ HTTP/1.1” 302 -
192.168.1.16 - - [03/Jun/2021:21:21:00 +0200] “GET /nextcloud/index.php/apps/files/ HTTP/1.1” 302 -

Here is my apache config >

Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted


AddType application/x-httpd-php .php


DirectoryIndex index.php index.html

<FilesMatch “.php$”>
SetHandler application/x-httpd-php

<FilesMatch “.phps$”>
SetHandler application/x-httpd-php-source

Quelqu’un aurait il deja eu le probleme ?

Davance merci !

Vince

The clue for this may be that index.php imports a file called ./lib/versioncheck.php. That file contains the following code:

" // Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now

if (PHP_VERSION_ID >= 80100) {

http_response_code(500);

echo ‘This version of Nextcloud is not compatible with > PHP 8.0.
’;

echo 'You are currently running ’ . PHP_VERSION . ‘.’;

exit(-1);

}"

Thanks a lot. I didnt know that.

I downgrade my php to 7.0 and all is fine. Thanks again for your reply.

Best regards