Pages : 1
#1 Le 30/01/2023, à 16:51
- abecidofugy
[Résolu] Warning handicapants dans PhpMyAdmin
Salut,
Suite à la mise à jour ESM en Ubuntu pro, j’ai une foultitude de lignes plus ou moins similaires dans la mise à jour qui a été installé de PhpMyAdmin, et qui renvoient au même schéma d’erreur (warnings) :
Warning in ./libraries/classes/Config.php#1761
mkdir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp/twig) is not within the allowed path(s): (/home/user/.composer:/home/user/web/jeanne.mydomain.com/public_html:/home/user/web/jeanne.mydomain.com/private:/home/admin/web/jeanne.mydomain.com/public_shtml:/home/user/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt)
Je peux remédier à ça comment ?
Merci.
Dernière modification par abecidofugy (Le 31/01/2023, à 11:08)
De retour de l’hôpital, ma vie, mon œuvre.
Kubuntu 25.04 PC2 et portable et KDE neon pour la curiosité sur Virtualbox dans un Win11
Hors ligne
#2 Le 30/01/2023, à 18:30
- xubu1957
Re : [Résolu] Warning handicapants dans PhpMyAdmin
Bonjour,
Bonjour , vu au 1er message :
ondrej-ubuntu-php-focal.list
j ' espere qu ' a l' epoque tu as fait un retrogradation ou que tu maitrises parfaitement si ce depot est toujours dans tes sources , vu ta nouvelle discussion ...
Montre :
apt list \*php\* --installed
piqué dans [RÉSOLU] Problème pour installer phpmyadmin
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#3 Le 30/01/2023, à 20:33
- abecidofugy
Re : [Résolu] Warning handicapants dans PhpMyAdmin
Les warnings sont :
Warning in ./libraries/classes/Config.php#1112
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s):
Warning in ./libraries/classes/Config.php#1153
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)
Warning in ./libraries/classes/Config.php#1760
is_dir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp//twig) is not within the allowed path(s):
Warning in ./libraries/classes/Config.php#1761
mkdir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp/twig) is not within the allowed path(s):
Warning in ./libraries/classes/Config.php#1763
is_dir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp//twig) is not within the allowed path(s):
Warning in ./libraries/classes/Config.php#1112
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)
Warning in ./libraries/classes/Config.php#1153
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)
Is not within the allowed path(s). Rien à voir selon moi avec la version de Php.
De retour de l’hôpital, ma vie, mon œuvre.
Kubuntu 25.04 PC2 et portable et KDE neon pour la curiosité sur Virtualbox dans un Win11
Hors ligne
#4 Le 30/01/2023, à 20:42
- geole
Re : [Résolu] Warning handicapants dans PhpMyAdmin
Bonjour
Mets à jour le fichier de référence /etc/phpmyadmin/apache.conf
Dernière modification par geole (Le 30/01/2023, à 20:43)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#5 Le 30/01/2023, à 20:55
- abecidofugy
Re : [Résolu] Warning handicapants dans PhpMyAdmin
Bonjour
Mets à jour le fichier de référence /etc/phpmyadmin/apache.conf
Je pense en effet que c’est le bon fichier, mais je n’ai pas le bon slug de path à mettre.
J’ai ça pour l’instant :
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/usr/share/javascript/
</IfModule>
Y’a pas tout ?
//EDIT : ça concerne modphp et php 5, donc ce n’est pas ça.
Dernière modification par abecidofugy (Le 30/01/2023, à 21:54)
De retour de l’hôpital, ma vie, mon œuvre.
Kubuntu 25.04 PC2 et portable et KDE neon pour la curiosité sur Virtualbox dans un Win11
Hors ligne
#6 Le 31/01/2023, à 10:07
- iznobe
Re : [Résolu] Warning handicapants dans PhpMyAdmin
Les warnings sont :
Warning in ./libraries/classes/Config.php#1112 file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s): Warning in ./libraries/classes/Config.php#1153 file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s) Warning in ./libraries/classes/Config.php#1760 is_dir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp//twig) is not within the allowed path(s): Warning in ./libraries/classes/Config.php#1761 mkdir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp/twig) is not within the allowed path(s): Warning in ./libraries/classes/Config.php#1763 is_dir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp//twig) is not within the allowed path(s): Warning in ./libraries/classes/Config.php#1112 file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s) Warning in ./libraries/classes/Config.php#1153 file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)
Is not within the allowed path(s).
Rien à voir selon moi avec la version de Php.
Bonjour ,
Pour tant les lignes en erreur indiquent toutes :
Warning in ./libraries/classes/Config.php#1112
et donc comme indiqué par xubu et deja signalé des dizaines ( si ce n' est pas des centaines ) de fois sur le forum , la solution est simple ... virer le PPA ondrej qui met le bordel dans les paquets php* comme a chaquefois que quelqu ' un l' utilise ...
Dernière modification par iznobe (Le 31/01/2023, à 10:13)
retour COMPLET et utilisable de commande | script montage partitions | script install auto BROTHER]
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#7 Le 31/01/2023, à 11:07
- abecidofugy
Re : [Résolu] Warning handicapants dans PhpMyAdmin
On m’a donné la solution :
Add below:
<IfModule mpm_event_module>
# Use www.conf instead
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</IfModule>
<IfModule mpm_prefork_module>
# Use www.conf instead
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</IfModule>
Dans /etc/apache2/conf.d/phpmyadmin.inc
Emballé c’est pesé. Tout en gardant mon installation qui marche très bien par ailleurs.
Problème résolu grâce aux compétences d’HestiaCP et ses opensourceurs.
//EDIT : je précise que je suis en :
$ a2query -M
prefork
Dernière modification par abecidofugy (Le 31/01/2023, à 11:10)
De retour de l’hôpital, ma vie, mon œuvre.
Kubuntu 25.04 PC2 et portable et KDE neon pour la curiosité sur Virtualbox dans un Win11
Hors ligne
Pages : 1