Aller au contenu principal

Messages

Cette espace vous permet de voir toutes les Messages réalisées par ce membre. Vous ne pouvez voir que les Messages réalisées dans les espaces auxquels vous avez accès.

Messages - scooter33

1
Programmes et logiciels / Mediawiki upload image
Bonsoir,
Petite bouée lancée à la mer...

J'utilise mediawiki depuis des années; assez en fait pour avoir deja perdu 2 ou 3 fois tout mon travail :-)
Il n'empeche que c'est celui qui me convient le mieux.

J'ai recemment reinstallé Mediawiki (sur hebergement mutualisé) et je n'arrive pas a uploader les images.
J'ai suivi la procédure exacte expliquée sur le site mais ca ne fonctionne pas. Et je ne trouve nulle part ailleurs un forum (iziyouze c'est mieux :-) ) expliquant quoi faire pour l'erreur rencontrée.
Special:Upload Error: Call to undefined method JobQueueGroup::singleton()
Précision qui a son importance:
Je ne peux pas uploader d'image.. mais l'upload d'un pdf fonctionne.

Merki
Ooo
3
Internet, réseaux et serveurs / Re : phpMyAdmin config
1ère piste :
Citer
Dans php.ini ligne 939
Code: [Sélectionner]
extension=mysqli
Mets y plutôt le chemin d'accès et pas le nom de l'extension... si ça fonctionne pas. remets comme c'était.

2ème piste :
regarde les droits et les proprio de l'extension, et compare avec ce que préconise SUSE.

L766
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
extension_dir = "/usr/lib64/php8/extensions/"
; On windows:
;extension_dir = "ext"

L906
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
extension=mysqli.so

Pour les droits mysqli : root root 755

Par contre, je viens de voir un truc bizarre dans les logs
[Fri Apr 26 10:48:21.466867 2024] [mpm_prefork:notice] [pid 5012] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Apr 26 10:48:21.535562 2024] [ssl:warn] [pid 5661] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php8/extensions/mysqli.so (/usr/lib64/php8/extensions/mysqli.so: undefined symbol: mysqlnd_global_stats), /usr/lib64/php8/extensions/mysqli.so.so (/usr/lib64/php8/extensions/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib64/php8/extensions/mysqli (/usr/lib64/php8/extensions/mysqli: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions/mysqli.so (/usr/lib64/php8/extensions/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
[Fri Apr 26 10:48:21.538556 2024] [mpm_prefork:notice] [pid 5661] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l-fips PHP/8.0.30 configured -- resuming normal operations
[Fri Apr 26 10:48:21.538589 2024] [core:notice] [pid 5661] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'

mysqli.so.so: cannot open shared object file:

J'ai supprimé le .so et ca ne begaie plus.. mais ca ne fonctionne toujours pas.
J'ai bien entendu redemarre maria et apache avant de tester.


5
Internet, réseaux et serveurs / Re : phpMyAdmin config
mariadb fonctionne via terminal ? C'est-à-dire ?

 sudo systemctl status mariadb.service ?

sudo mysql_secure_installation ?
mariadb dans terminal => mysql -u root -p
fonctionnel

service m'indique dead
donc je pars dans yast pour verifier les services

sudo systemctl status mariadb.service* mariadb.service - MariaDB database server
     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
     Active: active (running) since Thu 2024-04-25 12:54:55 CEST; 4h 48min ago
       Docs: man:mysqld(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 8906 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install (code=exited, status=0/SUCCESS)
    Process: 8912 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade (code=exited, status=0/SUCCESS)
   Main PID: 8918 (mysqld)
     Status: "Taking your SQL requests now..."
      Tasks: 8 (limit: 4915)
     CGroup: /system.slice/mariadb.service
             `- 8918 /usr/sbin/mysqld --defaults-file=/etc/my.cnf --user=mysql

Apr 25 12:54:55 localhost.localdomain systemd[1]: Starting MariaDB database server...
Apr 25 12:54:55 localhost.localdomain systemd[1]: Started MariaDB database server.

* mariadb.socket - MariaDB 10.6.15 database server (socket activation)
     Loaded: loaded (/usr/lib/systemd/system/mariadb.socket; static)
     Active: inactive (dead)
   Triggers: * mariadb.service
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
     Listen: @mariadb (Stream)
             /run/mysql/mysql.sock (Stream)
             [::]:3306 (Stream)

j'ai relancé le script post-installation. Ca a dissipé mes doutes sur la reussite de la 1ere fois. Contrairement a avant, mysql par le terminal demande le nouveau mot de passe root.

Pour autant, le message dans le navigateur demeure.... meme si error_log n'update rien depuis la derniere fois.

Ooo

6
Internet, réseaux et serveurs / phpMyAdmin config
Bonjour,

La derniere config qui resiste.

Je reinstalle LAMP et pour le moment
  • Apache fonctionne
  • php fonctionne
  • mariadb fonctionne via terminal

Reste phpMyAdmin qui passe pas.

J'ai essayé encopie directe dans repertoire www ou par yast, ca passe pas.

Dans acces_log, je me trouve ace ce message
[Thu Apr 25 12:55:02.493981 2024] [mpm_prefork:notice] [pid 8322] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Apr 25 12:55:02.566487 2024] [ssl:warn] [pid 8945] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php8/extension/mysqli.so' (tried: /usr/lib64/php8/extension/mysqli.so (/usr/lib64/php8/extension/mysqli.so: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions///usr/lib64/php8/extension/mysqli.so.so (/usr/lib64/php8/extensions///usr/lib64/php8/extension/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib64/php8/extensions/mysqli (/usr/lib64/php8/extensions/mysqli: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions/mysqli.so (/usr/lib64/php8/extensions/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
[Thu Apr 25 12:55:02.569613 2024] [mpm_prefork:notice] [pid 8945] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l-fips PHP/8.0.30 configured -- resuming normal operations
[Thu Apr 25 12:55:02.569642 2024] [core:notice] [pid 8945] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND

J'ai bien mysqli dans /usr/lib64/php8/extensions
La j'ai plus d'idée :-(

phpMyAdmin - Erreur
Il manque l'extension mysqli. Merci de vérifier la configuration PHP. Voir la documentation pour plus de détails.
Dans php.ini ligne 939
extension=mysqli

Tx
Ooo
7
Virtualisation / Re : Creer une nouvelle machine virtuelle
Tu as quoi comme packets de libvirt installés?
zypper se libvirt
Je pense qu'il te faut libvirt-daemon (et probablement quelques autres).
Si tout à l'air bien vérifie le status du service associé à libvirt
sudo systemctl status libvirt[...] 
(TAB pour compléter le nom dont je ne suis complètement sûr, si ça ne marche pas c'est peut-être virt[...])
Pour le démarrer
sudo systemctl start libvirt[...] 
Pour l'activer (pour qu'il démarre automatiquement)
sudo systemctl enable libvirt[...] 
Merci pour ces infos.
Effectivement ]zypper se libvirt est bien bavard.
Je pense que la majorité y était mais j'en ai quand meme rajouté 2 ou 3 qui me paraissaient cohérents .
Mas effectivement libvirt n'etait pas en fonction
Donc apres avoir activé libvirtd, j'ai pu ajouter une machine virtuelle.
Ca n'etait pas assez flou pour que je n'y arrive pas ;-)
Merci pour le coup de main
Ooo
8
Virtualisation / Creer une nouvelle machine virtuelle
Bonjour,

Je pensais trouver la solution dans mes anciennes demandes, mais non :-(
Donc, apres installation de la 15.5, j'en suis rendu aux machines virtuelles.
Le gestionnaire indique :
Erreur: aucune connexion active pour installer

Je cherche sur le net et je trouve
chown username:username /var/run/libvirt/libvirt-sock

excepté que ca n'existe pas sur OS15.5
je trouve a la place
/var/run/lvm/lvmpolld.socket

est ce qu'il s'agit du bon chemin ou je me plante ?

Cdt
Ooo
9
Programmes et logiciels / Re : Reglage php
Bon. Finalement, ce que j'ai compris c'est que ca n'est pas une question de droits (dans l'etat en tous cas).
Pour le reste, ca fonctionne. Je suspecte des explications a ca, mais ca serait long.. et probablement inutile de m'y étendre.
Affaire classée.
Merci aux intervenants !
Apres, je peux detailler quand meme..
J'ai installé php7 avec zypper:
zypper in  php7 php apache2-mod_php7 php7-curl php7-xmlreader php7-zip php7-pdo php7-gd php7-json php7-mysql php7-mbstring php7-openssl
et en regardant avec Yast Serveur Web et Lamp, je me suis apercu que Apache2_Mod_Php n'etait pas coché.
Je pense que le probleme venat de la en fait.
Tx
10
Programmes et logiciels / Re : Reglage php
merci pour la reponse

Ca dit toujours la meme chose en fait :

AH00557: httpd-prefork: apr_sockaddr_info_get() failed for localhost.localdomain
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK

j'au cherche dans quelque .conf mais j'ai jamais trouvé servername .. a supposer que j'ai bien compris ce qui est dit !
11
Programmes et logiciels / Re : Reglage php
░░ The job identifier is 6284.
Apr 23 18:29:10 localhost.localdomain systemd[1]: Reloading The Apache Webserver...
░░ Subject: A reload job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A reload job for unit apache2.service has begun execution.
░░
░░ The job identifier is 6393.
Apr 23 18:29:10 localhost.localdomain start_apache2[25031]: AH00557: httpd-prefork: apr_sockaddr_info_get() failed for localhost.localdomain
Apr 23 18:29:10 localhost.localdomain start_apache2[25031]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive global>
Apr 23 18:29:10 localhost.localdomain systemd[1]: apache2.service: Main process exited, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'dumped' and its exit status is 6.
Apr 23 18:29:10 localhost.localdomain systemd[1]: apache2.service: Failed with result 'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit apache2.service has entered the 'failed' state with result 'core-dump'.
Apr 23 18:29:10 localhost.localdomain systemd[1]: Reload failed for The Apache Webserver.
░░ Subject: A reload job for unit apache2.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A reload job for unit apache2.service has finished.
░░

Dans Utilisateurs
login-nom-uid-group => eric-eric-1000-users,www
Dans Groupes
nom-id-membres
users-100-wwwrun,eric

Il faut changer quoi vers ou ?
12
Programmes et logiciels / Re : Reglage php
Petit tour dans error_log me donne ca
Citer
[Tue Apr 23 15:24:49.726344 2024] [mpm_prefork:notice] [pid 4491] AH00170: caught SIGWINCH, shutting down gracefully
corrupted size vs. prev_size while consolidating
AH00557: httpd-prefork: apr_sockaddr_info_get() failed for localhost.localdomain
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Tue Apr 23 15:24:50.007859 2024] [ssl:warn] [pid 13368] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Apr 23 15:24:50.032197 2024] [mpm_prefork:notice] [pid 13368] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l-fips PHP/7.4.33 PHP/8.0.30 configured -- resuming normal operations
[Tue Apr 23 15:24:50.032226 2024] [core:notice] [pid 13368] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Tue Apr 23 15:25:07.050411 2024] [core:notice] [pid 13368] AH00052: child pid 13376 exit signal Segmentation fault (11)

J'arrive pas a synthetiser.
Histoire de cache. OK. J’appréhende mais ca me dit pas quoi faire et ou.
Ca dit aussi php8 alors que theoriquement je l'ai remplacé par le 7.4

ca donne une piste ?
13
Programmes et logiciels / Re : Reglage php
localhost:/srv/www/htdocs> ls -al
total 20
drwxrwxr-x 2 eric web    94 23 avril 01:10 .
drwxr-xr-x 4 root root   35 21 avril 23:16 ..
-rw-r--r-- 1 eric web   302 23 juil.  2008 favicon.ico
-rw-rw-r-- 1 eric web    50 22 avril 12:00 index.html
-rwxrwxrwx 1 eric users  24  7 nov.   2022 index.php
-rw-r--r-- 1 eric web    26 30 oct.  15:43 robots.txt
-rwxr-xr-x 1 eric www    20 23 avril 01:10 test.php

localhost:/srv/www> ls -al
total 0
drwxr-xr-x 4 root root 35 21 avril 23:16 .
drwxr-xr-x 4 root root 33 21 avril 23:21 ..
drwxr-xr-x 2 root root  6 15 mars   2022 cgi-bin
drwxrwxr-x 2 eric web  94 23 avril 01:10 htdocs

Mon idee au depart, c'est de me (eric) donner tous les droits sur htdocs
je pensais que c'etait le cas vu que "it works" s'affiche
mais php semble moins enthousiaste a s'afficher
14
Programmes et logiciels / Reglage php
Bonjour,
N'hesitez pas a me deplacer si je suis pas dans le bon forum.
Je viens d'installer 15.5 sur un nouveau ssd. Je suis a l'etape d'installation LAMP. Je me base sur cette url pour faire le setup.
Pour Apache "It works".
Et avant d'installer mariadb, j'ai installé php7.
It works mais it works juste en terminal.
127.0.0.1 n'a envoyé aucune donnée.
ERR_EMPTY_RESPONSE

Ce qui est dit
apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; vendor preset: disabled)
     Active: active (running) since Tue 2024-04-23 10:31:53 CEST; 14min ago
   Main PID: 4491 (httpd-prefork)
     Status: "Processing requests..."
      Tasks: 6
     CGroup: /system.slice/apache2.service
             ├─ 4491 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
             ├─ 4542 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
             ├─ 4556 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
             ├─ 4587 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
             ├─ 4777 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
             └─ 8404 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>

En résumé de situation: phpinfo s'affiche dans le terminal, mais pas dans le navigateur.
Ca m'inspire une gestion erronée des droits utilisateur, vu que je me suis attribué les droits utilisateur sur /srv/www .. et que je suis pas top top sur chmod :-)

Vous en dites quoi ?
Cdt
Ooo