après la mise-à-jour vers ubuntu 22.04, http://localhost/dolibarr/ a cessé de fonctionner. J’ai installé php 7.4 puis réinstallé la version 11 de dolibarr (celle que je pense avoir) à partir d’un paquet deb, mais maintenant, lorsque je fais pointer mon navigateur sur http://localhost/dolibarr/, j’ai l’erreur suivante :
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.4.52 (Ubuntu) Server at localhost Port 80
Si Apache a été installé avec php-fpm, il fait suivre la requête à un fichier spécial : un socket php
Le socket PHP a peut-être changé de nom, par exemple /var/run/php/php7.4-fpm.sock au lieu de /var/run/php/php7.3-fpm.sock
Il faut vérifier les noms que ça correspond à celui utilisé par php-fpm.
lug 10 14:02:13 lilla systemd[1]: Starting The PHP 7.4 FastCGI Process Manager…
lug 10 14:02:13 lilla systemd[1]: Started The PHP 7.4 FastCGI Process Manager.
Les pages localhost/info.php et localhost/dolibarr renvoient toujours la même page « Service Unavailable »
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
/var/www/html/dolibarr n’est pas un lien symbolique, il contient l’ancienne installation.
Aucune idée si dolibarr est lancé par php-fpm ou un module apache.
Je n’ai pas de répertoire /etc/php/7.3, mais les répertoires /etc/php/7.4 et /etc/php/8.1 contiennent un seul fichier de configuration www.conf avec la même chose (pour ce qui est du non-commenté), hormis la variable listen, qui pointe vers le socket approprié (7.4 ou 8.1)
Bonjour, après migration vers ubuntu 22.04, quand je tente d’ouvrir Dolibarr, j’ai le message suivnat qui s’affiche sur la page d’acceuil: Fatal error: Uncaught Error: Class ‹ mysqli › not found in /usr/share/dolibarr/htdocs/core/db/mysqli.class.php:239 Stack trace: #0 /usr/share/dolibarr/htdocs/core/db/mysqli.class.php(93): DoliDBMysqli->connect() #1 /usr/share/dolibarr/htdocs/core/lib/functions.lib.php(126): DoliDBMysqli->__construct() #2 /usr/share/dolibarr/htdocs/master.inc.php(140): getDoliDBInstance() #3 /usr/share/dolibarr/htdocs/main.inc.php(343): require_once(‹ /usr/share/doli… ›) #4 /usr/share/dolibarr/htdocs/index.php(31): require(‹ /usr/share/doli… ›) #5 {main} thrown in /usr/share/dolibarr/htdocs/core/db/mysqli.class.php on line 239
Il faut que vous m’étiez votre serveur « d’équerre » avec PHP 7.4 (car Dolibarr V11 non compatible PHP V8) et toutes les extensions PHP qui vont bien.
Ici, on est sur un forum Dolibarr pas Ubuntu, je vous encourage à aller poser la question la bas.