Ubuntu Perte de Dolibarr apres mise à niveau 18.04

Bonjour,

J’ai installé Dolibarr 7.0.1-4 sur mon kubuntu 17.10.
Lors de la mise à niveau vers le 18.04 LTS, Dolibarr a disparu !
Lorsque je tente de le ré-installer, j’obtiens quand j’appelle " http://localhost/dolibarr/index.php?mainmenu=home&leftmenu=home" une page qui commence par

<?php /\* Copyright (C) 2001-2004 Rodolphe Quiedeville \* Copyright (C) 2004-2017 Laurent Destailleur \* Copyright (C) 2005-2017 Regis Houssin \* Copyright (C) 2011-2012 Juanjo Menent \* Copyright (C) 2015 Marcos García * \* This program is free software; you can redistribute it and/or modify \* it under the terms of the GNU General Public License as published by \* the Free Software Foundation; either version 3 of the License, or \* (at your option) any later version. * \* This program is distributed in the hope that it will be useful, \* but WITHOUT ANY WARRANTY; without even the implied warranty of \* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \* GNU General Public License for more details. * \* You should have received a copy of the GNU General Public License \* along with this program. If not, see . */ /** * \file htdocs/index.php * \brief Dolibarr home page */ Je galère et dois impérativement récupérer les données encodées. Toute aide sera la bienvenue. Merci, Eric

Bonjour,
Il manque /htdocs à la fin de votre adresse. Essayez avec http://localhost/dolibarr/htdocs
Bonne journée,

1 « J'aime »

Merci pour cette suggestion.
Lorsque je l’essaye, cela donne :

La connexion a échoué
Firefox ne peut établir de connexion avec le serveur à l’adresse localhost.
Le site est peut-être temporairement indisponible ou surchargé. Réessayez plus tard ;
Si vous n’arrivez à naviguer sur aucun site, vérifiez la connexion au réseau de votre ordinateur ;
Si votre ordinateur ou votre réseau est protégé par un pare-feu ou un proxy, assurez-vous que Firefox est autorisé à accéder au Web.

Bonjour :happy:
Php n’est pas activé il me semble

Si le pb vient bien de là voici les infos pour l’activer dans apache
https://doc.ubuntu-fr.org/php
Merci dolibarr95 !

2 « J'aime »

Bonjour,
je me retrouve avec la même problème que [Gaiarome] suite à une mise à niveau d’Ubuntu vers la version 22.04.3 LTS.
Dolibarr n’a pas disparu lors de la mise à niveau mais lorsque je lance Dolibarr, cela m’ouvre une page qui commence avec le texte suivant:

  • Copyright (C) 2004-2020 Laurent Destailleur * Copyright (C) 2005-2017 Regis Houssin * Copyright (C) 2011-2012 Juanjo Menent * Copyright (C) 2015 Marcos García * Copyright (C) 2021 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . / /* * \file htdocs/index.php * \brief Dolibarr home page / define(‹ CSRFCHECK_WITH_TOKEN ›, 1); // We force need to use a token to login when making a POST require ‹ main.inc.php ›; require_once DOL_DOCUMENT_ROOT.‹ /core/class/html.formother.class.php ›; // If not defined, we select menu « home » $_GET[‹ mainmenu ›] = GETPOST(‹ mainmenu ›, ‹ aZ09 ›) ? GETPOST(‹ mainmenu ›, ‹ aZ09 ›) : ‹ home ›; $action = GETPOST(‹ action ›, ‹ aZ09 ›); $hookmanager->initHooks(array(‹ index ›)); / * Actions / // Check if company name is defined (first install) if (!isset($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_NOM)) { header(« Location: « .DOL_URL_ROOT. »/admin/index.php?mainmenu=home&leftmenu=setup&mesg=setupnotcomplete »); exit; } if (count($conf->modules) <= (empty($conf->global->MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING) ? 1 : $conf->global->MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING)) { // If only user module enabled header(« Location: « .DOL_URL_ROOT. »/admin/index.php?mainmenu=home&leftmenu=setup&mesg=setupnotcomplete »); exit; } if (GETPOST(‹ addbox ›)) { // Add box (when submit is done from a form when ajax disabled) require_once DOL_DOCUMENT_ROOT.‹ /core/class/infobox.class.php ›; $zone = GETPOST(‹ areacode ›, ‹ int ›); $userid = GETPOST(‹ userid ›, ‹ int ›); $boxorder = GETPOST(‹ boxorder ›, ‹ aZ09 ›); $boxorder .= GETPOST(‹ boxcombo ›, ‹ aZ09 ›); $result = InfoBox::saveboxorder($db, $zone, $boxorder, $userid); if ($result > 0) { setEventMessages($langs->trans(« BoxAdded »), null); } } / * View */ if (!isset($form) || !is_object($form)) { $form = new Form($db); } // Title $title = $langs->trans(« HomeArea »).’ - Dolibarr ‹ .DOL_VERSION; if (!empty($conf->global->MAIN_APPLICATION_TITLE)) { $title = $langs->trans(« HomeArea »). › - ‹ .$conf->global->MAIN_APPLICATION_TITLE; } llxHeader( ›‹ , $title); $resultboxes = FormOther::getBoxesArea($user, « 0 »); // Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb) print load_fiche_titre( › ‹ , $resultboxes[‹ selectboxlist ›], ‹  ›, 0, ‹  ›, ‹ titleforhome ›); if (!empty($conf->global->MAIN_MOTD)) { $conf->global->MAIN_MOTD = preg_replace( ›//i’, ’
    ', $conf->global->MAIN_MOTD); if (!empty($conf->global->MAIN_MOTD)) { $substitutionarray = getCommonSubstitutionArray($langs); complete_substitutions_array($substitutionarray, $langs); $texttoshow = make_substitutions($conf->global->MAIN_MOTD, $substitutionarray, $langs); print « \n\n »; print ’

'; print dol_htmlentitiesbr($texttoshow); print ’

PHP n’est pas installé sans doute.

Je ne sais pas comment a été installé Dolibarr, sans doute le package libapache2-mod-php a été enlevé à l’upgrade

Merci pour ta réponse,
quelle type d’information sur l’installation faut-il ?
J’ai essayé d’installer le package libapache2-mod-php, voici la réponse:
Le paquet « libapache2-mod-php » est déjà installé

Le module php n’est peut-être pas activé, la commande suivante l’active :
a2enmod php8.1

Voici la réponse à: a2enmod php8.1

Considering dependency mpm_prefork for php8.1:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.1:
Module php8.1 already enabled

Et la commande qui permet d’activer la configuration dolibarr dans apache est déjà faite je suppose :

a2enconf dolibarr

Ensuite, il faut regarder les logs apache.

voici la réponse à: a2enconf dolibarr

Conf dolibarr already enabled

comment je dois m’y prendre pour regarder les logs apaches ?

Bonjour,
Comme dans tout système Linux. Dans /var/log/apache.
Il y a des forums Ubuntu pour ce type d’info.

Bonjour et merci gaecCAB,
je suis effectivement allé lire un tuto sur les logs.

J’ ai trouvé plusieurs error.log dans /var/log/apache2
le error.log.1 contient ceci:

[Thu Aug 10 02:01:14.584961 2023] [mpm_prefork:notice] [pid 1000] AH00163: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Thu Aug 10 02:01:14.585055 2023] [core:notice] [pid 1000] AH00094: Command line: ‹ /usr/sbin/apache2 ›
[Thu Aug 10 12:21:04.481570 2023] [mpm_prefork:notice] [pid 1068] AH00163: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Thu Aug 10 12:21:04.517779 2023] [core:notice] [pid 1068] AH00094: Command line: ‹ /usr/sbin/apache2 ›
[Thu Aug 10 16:30:40.566671 2023] [mpm_prefork:notice] [pid 1068] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Aug 10 16:32:11.761788 2023] [mpm_prefork:notice] [pid 1026] AH00163: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Thu Aug 10 16:32:11.861651 2023] [core:notice] [pid 1026] AH00094: Command line: ‹ /usr/sbin/apache2 ›
[Fri Aug 11 00:00:15.604401 2023] [mpm_prefork:notice] [pid 1026] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‹ ServerName › directive globally to suppress this message

j’ai ensuite lancé la commande ‹ sudo systemctl status apache2 ›
dont voici la réponse:
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
Active: active (running) since Fri 2023-08-11 12:54:11 CEST; 3h 25min ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 869 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUC>
Main PID: 1015 (apache2)
Tasks: 6 (limit: 4412)
Memory: 3.8M
CPU: 887ms
CGroup: /system.slice/apache2.service
├─1015 /usr/sbin/apache2 -k start
├─1121 /usr/sbin/apache2 -k start
├─1122 /usr/sbin/apache2 -k start
├─1123 /usr/sbin/apache2 -k start
├─1124 /usr/sbin/apache2 -k start
└─1125 /usr/sbin/apache2 -k start

août 11 12:53:58 lafermenomade systemd[1]: Starting The Apache HTTP Server…
août 11 12:54:10 lafermenomade apachectl[908]: AH00558: apache2: Could not reli>
août 11 12:54:11 lafermenomade systemd[1]: Started The Apache HTTP Server.
lines 1-20/20 (END)…skipping…
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-08-11 12:54:11 CEST; 3h 25min ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 869 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 1015 (apache2)
Tasks: 6 (limit: 4412)
Memory: 3.8M
CPU: 887ms
CGroup: /system.slice/apache2.service
├─1015 /usr/sbin/apache2 -k start
├─1121 /usr/sbin/apache2 -k start
├─1122 /usr/sbin/apache2 -k start
├─1123 /usr/sbin/apache2 -k start
├─1124 /usr/sbin/apache2 -k start
└─1125 /usr/sbin/apache2 -k start

août 11 12:53:58 lafermenomade systemd[1]: Starting The Apache HTTP Server…
août 11 12:54:10 lafermenomade apachectl[908]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‹ ServerName ›>
août 11 12:54:11 lafermenomade systemd[1]: Started The Apache HTTP Server.

Salut, après être parti en vacances, ça remarche sans explication ni intervention de ma part.
Mystère.
Merci pour les conseils.