2016-06-01 2 views
0

Après un peu toying avec mon freePBX installer sur F25, il me semble avoir rompu, et ne peut pas se pdo_mysql à la charge:PHP ne se charge pas PDO_MySQL sur Fedora 25

[[email protected] freepbx] # /usr/bin/env php -m | grep -i pdo 
PDO 
pdo_sqlite 

freePBX de ./install erreurs de façon appropriée:

Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Done 
Preliminary checks done. Starting FreePBX Installation 
Checking if this is a new install...Yes (No /etc/amportal.conf file detected) 
Database Root installation checking credentials and permissions..Error! 
Invalid Database Permissions. The error was: could not find driver 

Enfin, pdo_mysql est dans le répertoire /etc/php.d:

[[email protected] php.d] # ls *pdo_mysql* 
30-pdo_mysql.ini 

Je me bats ici, et sur le point de faire une installation propre de CentOS (et ne pas l'exécuter sur Fedora Workstation, ce qui n'était pas la meilleure idée). Des idées?

Edit: Bien que soi-disant php.ini est plus utilisé pour charger des extensions, je ne l'essayer de toute façon, en ajoutant:

extension="pdo.so" 
extension="pdo_mysql.so" 

Et maintenant ...

[[email protected] freepbx] # /usr/bin/env php -m | grep -i pdo 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: undefined symbol: zend_new_interned_string in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: undefined symbol: mysqlnd_allocator in Unknown on line 0 
PDO 
pdo_sqlite 
+0

1) Il n'y a pas de Fedora 25 ... Voulez-vous dire "Rawhide en développement" http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Spins/i386/iso/- 2) Vous avez des fichiers non système (php) dans/usr/local /: Peut ne pas correspondre à d'autres paquets. - –

Répondre

4

Je suis trompais autour de ce problème un moment et je pense que je l'ai résolu en faisant ce qui suit:

installé php mysql en utilisant cette commande dans le terminal:

dnf install php-mysqlnd 

puis redémarrés apache ce qui suit:

service httpd restart