Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 02/04/2016, à 16:30

__fabrice

PEAR et PECL erreur sur une vm (php-fpm, nginx)

Salut,

J'ai une erreur sur un VM (fait avec puphpet), j'utilise Vagrant.
Je dois installer des extensions avec PECL, et j'ai une longue liste d'erreur (idem avec PEAR). J'ai pas tout mis smile
J'ai fait des recherches, mais cela parle souvent de php7, alors que j'ai le php5.6.
PECL :

 Warning: Invalid argument supplied for foreach() in Command.php on line 249
 
 Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
 
 Call Stack:
     0.0005     240712   1. {main}() /usr/share/php/peclcmd.php:0
     0.0010     344584   2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
     0.0072    2016608   3. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
     0.0072    2016832   4. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
 
 
 Warning: Invalid argument supplied for foreach() in Command.php on line 249
 
 Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
 
 Call Stack:
     0.0005     240712   1. {main}() /usr/share/php/peclcmd.php:0
     0.0010     344584   2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
     0.0072    2016608   3. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
     0.0072    2016832   4. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
 
 
 Warning: Invalid argument supplied for foreach() in Command.php on line 249
 
 Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
 
 Call Stack:
     0.0005     240712   1. {main}() /usr/share/php/peclcmd.php:0
     0.0010     344584   2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
     0.0072    2016608   3. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
     0.0072    2016832   4. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
 
 
 Warning: Invalid argument supplied for foreach() in Command.php on line 249
 
 Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
 
 Call Stack:
     0.0005     240712   1. {main}() /usr/share/php/peclcmd.php:0
     0.0010     344584   2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
     0.0072    2016608   3. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
     0.0072    2016832   4. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302

PEAR :

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_xmlrpc.dll' - /usr/lib/php/20131226/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/amqp.so' - /usr/lib/php/20131226/amqp.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 '/usr/lib/php/20131226/mongodb.so' - /usr/lib/php/20131226/mongodb.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
PHP   3. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
PHP   3. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
PHP   3. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
PHP   3. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
PHP   3. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command::getCommands() /usr/share/php/pearcmd.php:54
PHP   3. PEAR_Command::registerCommands() /usr/share/php/PEAR/Command.php:302

Je comprends pas pourquoi il me parle de .dll d'ailleurs wink

Merci
Fabrice

Hors ligne

#2 Le 04/04/2016, à 15:58

bruno

Re : PEAR et PECL erreur sur une vm (php-fpm, nginx)

Bonjour,

Visiblement il y a une installation foireuse de php et/ou de ses modules…
Il faudrait donc savoir la version d'Ubuntu que tu utilises, vérifier que tu n'utilises que des dépôts officiels et vérifier les versions de PHP et des modules installés (notamment php-pear)

Hors ligne

#3 Le 04/04/2016, à 17:07

__fabrice

Re : PEAR et PECL erreur sur une vm (php-fpm, nginx)

Salut,

Merci, mais j'ai re-généré la VM (que j'avais fait avec puPHPet). En prenant les bonnes libs (php, pecl et/ou pear), cela a fonctionné.

C'était le site  qui n'incluait pas ces libs par défaut.

Fabrice

Hors ligne