php5-fpm on Ubuntu won’t restart

Just had some strange issues with php5-fpm on Ubuntu. I installed php5-mysql via apt but after the installation I still got errors like the following when my php website tried to load data from mysql:

FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'Exception'
with message 'could not find driver' in /foo/bar/medoo.min.php:22

I checked everything. The driver was activated in the configuration. MySQL was running and the credentials were correct. The MySQL configuration for PHP looked ok. The only odd thing was the missing mysql-driver in phpinfo()-output.

The solution was quite simple! The restart of php5-fpm failed after installing the mysql extension. Even service php5-fpm stop failed to stop php5-fpm. So I rebooted the machine and now everything’s fine. Not elegant but effective.

There's 0 Comment So Far

Share your thoughts, leave a comment!