Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am working on Amazon EC2 using the Amazon Linux AMI which is based on CentOS. I have installed php54 and php54-mysqlnd.

Then I do a sudo pecl install myslqnd_ms. This installs fine. I add the extension into the php.ini file. Then I start httpd, and when I do in the error log I see:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/' - /usr/lib64/php/modules/ undefined symbol: mysqlnd_globals in Unknown on line 0

Googling this lead me to this thread on and other forum. Neither of which helped me much.

What would be the best solution here? I am trying to stick to stock pre built binaries from the main YUM repo if possible.

share|improve this question

1 Answer 1

To resolve this issue:

Remove the lines like:


from the php.ini file

Create a new file called /etc/php.d/mysqlnd_ms.ini and put those lines in there and restart php-fpm

service php-fpm restart
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.