|
From: | Pierre-François Philippe |
Subject: | Re: [noalyss-generale] Problème PHP suite mise à niveau Ubuntu |
Date: | Wed, 25 Jan 2023 10:49:56 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
Bonjour
Si je peux me permettre de m'inviter dans la discussion...
chez moi
/usr/sbin/apachectl -D DUMP_MODULES
apache2: Syntax error on line 146 of /etc/apache2/apache2.conf:
Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load:
Cannot load /usr/lib/apache2/modules/libphp7.4.so into server:
/usr/lib/apache2/modules/libphp7.4.so: cannot open shared object
file: No such file or directory
Action '-D DUMP_MODULES' failed.
The Apache error log may have more information.
Si ça vous dit qqchose....
Merci
PFP
Alors...
2° (a2enmod php8.1.conf) :
ERROR: Module php8.1.conf does not exist!
3° (php -m) :
[PHP Modules]
bcmath
calendar
Core
ctype
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
openssl
pcntl
pcre
PDO
pdo_pgsql
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Et (/usr/sbin/apachectl -D DUMP_MODULES) :
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
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
mime_module (shared)
mpm_event_module (shared)
negotiation_module (shared)
reqtimeout_module (shared)
setenvif_module (shared)
status_module (shared)
Merci encore pour les conseils.
Je rame.
y
Dany De Bontridder via noalyss-generale:
Bonsoir,
Ok , mais juste un ou 2 petits tests :
1° supprime les fichiers que tu as liés / copiés dans /etc/apache2/mods-enabled
2° fait à la place
cd /etc/apache2/mods-available
a2enmod php8.1.conf
3° en commande en ligne , que donne
php -m
et
/usr/sbin/apachectl -D DUMP_MODULES
On va règler ça easy peasy :)
@+
D
On 8/01/23 19:52, ydc wrote:
Salut.
Je ne veux pas t'emmerder avec ça.
C'est hors sujet Noalyss.J'attendais donc qu'une autre personne réagisse sur la liste.
J'ai déjà épluché la documentation.
Tout purgé tout réinstallé.
Des traces de php7 reste ci et là mais c'est bien désinstallé.Et, comme je disais, «J'ai ajouté les "php8.1.conf" et "php8.1.load" dans "/etc/apache2/mods-enabled" (liens depuis "/etc/apache2/mods-available). Cette étape fait planter Apache». C'était suggéré quelque part.
Voici la sortie de «dpkg -l |grep php» :
adminimum@WELT-AG:~$ dpkg -l |grep php
ii libapache2-mod-php 2:8.1+92ubuntu1 all server-side, HTML-embedded scripting language (Apache 2 module) (default)
rc libapache2-mod-php7.0 7.0.33-0ubuntu0.16.04.16 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
rc libapache2-mod-php7.2 7.2.24-0ubuntu0.18.04.10 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php8.1 8.1.2-1ubuntu2.9 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php 2:8.1+92ubuntu1 all server-side, HTML-embedded scripting language (default)
ii php-bcmath 2:8.1+92ubuntu1 all Bcmath module for PHP [default]
ii php-common 2:92ubuntu1 all Common files for PHP packages
ii php-dompdf 0.6.2+dfsg-3.1 all HTML to PDF converter
ii php-font-lib 0.3.1+dfsg-3.1 all read, parse, export and make subsets of different fonts
ii php-gd 2:8.1+92ubuntu1 all GD module for PHP [default]
ii php-gmp 2:8.1+92ubuntu1 all GMP module for PHP [default]
ii php-mbstring 2:8.1+92ubuntu1 all MBSTRING module for PHP [default]
ii php-pear 1:1.10.12+submodules+notgz+20210212-1ubuntu3 all PEAR Base System
ii php-pgsql 2:8.1+92ubuntu1 all PostgreSQL module for PHP [default]
ii php-php-gettext 1.0.12-5 all read gettext MO files directly, without requiring anything other than PHP
ii php-xml 2:8.1+92ubuntu1 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php-zip 2:8.1+92ubuntu1 all Zip module for PHP [default]
rc php7.0-bcmath 7.0.33-0ubuntu0.16.04.16 amd64 Bcmath module for PHP
rc php7.0-cli 7.0.33-0ubuntu0.16.04.16 amd64 command-line interpreter for the PHP scripting language
rc php7.0-common 7.0.33-0ubuntu0.16.04.16 amd64 documentation, examples and common module for PHP
rc php7.0-gd 7.0.33-0ubuntu0.16.04.16 amd64 GD module for PHP
rc php7.0-json 7.0.33-0ubuntu0.16.04.16 amd64 JSON module for PHP
rc php7.0-mbstring 7.0.33-0ubuntu0.16.04.16 amd64 MBSTRING module for PHP
rc php7.0-opcache 7.0.33-0ubuntu0.16.04.16 amd64 Zend OpCache module for PHP
rc php7.0-pgsql 7.0.33-0ubuntu0.16.04.16 amd64 PostgreSQL module for PHP
rc php7.0-readline 7.0.33-0ubuntu0.16.04.16 amd64 readline module for PHP
rc php7.0-xml 7.0.33-0ubuntu0.16.04.16 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
rc php7.0-zip 7.0.33-0ubuntu0.16.04.16 amd64 Zip module for PHP
rc php7.2-bcmath 7.2.24-0ubuntu0.18.04.10 amd64 Bcmath module for PHP
rc php7.2-cli 7.2.24-0ubuntu0.18.04.10 amd64 command-line interpreter for the PHP scripting language
rc php7.2-mbstring 7.2.24-0ubuntu0.18.04.10 amd64 MBSTRING module for PHP
rc php7.2-opcache 7.2.24-0ubuntu0.18.04.10 amd64 Zend OpCache module for PHP
rc php7.2-readline 7.2.24-0ubuntu0.18.04.10 amd64 readline module for PHP
rc php7.2-xml 7.2.24-0ubuntu0.18.04.10 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
rc php7.2-zip 7.2.24-0ubuntu0.18.04.10 amd64 Zip module for PHP
rc php7.4-bcmath 7.4.3-4ubuntu2.15 amd64 Bcmath module for PHP
rc php7.4-cli 7.4.3-4ubuntu2.15 amd64 command-line interpreter for the PHP scripting language
rc php7.4-common 7.4.3-4ubuntu2.15 amd64 documentation, examples and common module for PHP
rc php7.4-gd 7.4.3-4ubuntu2.15 amd64 GD module for PHP
rc php7.4-gmp 7.4.3-4ubuntu2.15 amd64 GMP module for PHP
rc php7.4-json 7.4.3-4ubuntu2.15 amd64 JSON module for PHP
rc php7.4-mbstring 7.4.3-4ubuntu2.15 amd64 MBSTRING module for PHP
rc php7.4-opcache 7.4.3-4ubuntu2.15 amd64 Zend OpCache module for PHP
rc php7.4-pgsql 7.4.3-4ubuntu2.15 amd64 PostgreSQL module for PHP
rc php7.4-readline 7.4.3-4ubuntu2.15 amd64 readline module for PHP
rc php7.4-xml 7.4.3-4ubuntu2.15 amd64 DOM, SimpleXML, XML, and XSL module for PHP
rc php7.4-zip 7.4.3-4ubuntu2.15 amd64 Zip module for PHP
ii php8.1 8.1.2-1ubuntu2.9 all server-side, HTML-embedded scripting language (metapackage)
ii php8.1-bcmath 8.1.2-1ubuntu2.9 amd64 Bcmath module for PHP
ii php8.1-cli 8.1.2-1ubuntu2.9 amd64 command-line interpreter for the PHP scripting language
ii php8.1-common 8.1.2-1ubuntu2.9 amd64 documentation, examples and common module for PHP
ii php8.1-gd 8.1.2-1ubuntu2.9 amd64 GD module for PHP
ii php8.1-gmp 8.1.2-1ubuntu2.9 amd64 GMP module for PHP
ii php8.1-mbstring 8.1.2-1ubuntu2.9 amd64 MBSTRING module for PHP
ii php8.1-opcache 8.1.2-1ubuntu2.9 amd64 Zend OpCache module for PHP
ii php8.1-pgsql 8.1.2-1ubuntu2.9 amd64 PostgreSQL module for PHP
ii php8.1-readline 8.1.2-1ubuntu2.9 amd64 readline module for PHP
ii php8.1-xml 8.1.2-1ubuntu2.9 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.1-zip 8.1.2-1ubuntu2.9 amd64 Zip module for PHP
Merci encore et bonne année à toi et à Noalyss !
y
Dany De Bontridder via noalyss-generale:
Bonjour ,
J'ai un peu regardé ce qu'on avait déjà sur le wiki et les forums , on a ceci
Il ressort que tu doives reinstaller la partie php . Donc on va vérifier ta config.
Pourrais-tu me donner la sortie de
dpkg -l |grep php
?
Mes meilleurs voeux et à bientôt
On va régler tout ça ;)
Dany
Le 5/01/23 à 10:24, ydc a écrit :
Bonjour.
Je me demandais si qui que ce soit d'entre vous avait déjà rencontré un souci lors d'un mise à niveau → Ubuntu 22 avec PHP et Apache.
Sur une autre machine Debian, ça avait déjà coincé au niveau des modules PHP, et j'avais trouvé l'astuce.
Ici, j'ai tout essayé ; rien n'y fait.
J'ai purgé et réinstallé.
J'ai ajouté les «php8.1.conf» et «php8.1.load» dans «/etc/apache2/mods-enabled» (liens depuis «/etc/apache2/mods-available»). Cette étape fait planter Apache.
«http://localhost/noalyss/html/install.php» m'indique des erreurs de modules php ; et «http://localhost/noalyss/html/index.php» me renvoie une partie du fichier «index.php». (Ci-joints)
Merci d'avance et meilleurs vœux.
y
--- NOALYSS est un Serveur de Comptabilité et de Gestion libre NOALYSS is an ERP Server opensource focused on accountancy Gérer votre abonnement https://lists.nongnu.org/mailman/listinfo/noalyss-generale
-- gpg key 0x6259f36e Alchimerys srl http://www.alchimerys.be Noalyss , serveur de comptabilité libre ,http://www.noalyss.eu
--- NOALYSS est un Serveur de Comptabilité et de Gestion libre NOALYSS is an ERP Server opensource focused on accountancy Gérer votre abonnement https://lists.nongnu.org/mailman/listinfo/noalyss-generale
--- NOALYSS est un Serveur de Comptabilité et de Gestion libre NOALYSS is an ERP Server opensource focused on accountancy Gérer votre abonnement https://lists.nongnu.org/mailman/listinfo/noalyss-generale
--- NOALYSS est un Serveur de Comptabilité et de Gestion libre NOALYSS is an ERP Server opensource focused on accountancy Gérer votre abonnement https://lists.nongnu.org/mailman/listinfo/noalyss-generale
--- NOALYSS est un Serveur de Comptabilité et de Gestion libre NOALYSS is an ERP Server opensource focused on accountancy Gérer votre abonnement https://lists.nongnu.org/mailman/listinfo/noalyss-generale
[Prev in Thread] | Current Thread | [Next in Thread] |