Fixing /etc/init.d/php5-fpm Init Script for PHP 5.4 (from Dotdeb) on Debian Squeeze

I recently updated my server to PHP 5.4 and discovered that I was no longer able to restart the PHP-FPM service using the regular:

$ /etc/init.d/php5-fpm restart

or

$ service php5-fpm restart

I went to the official Debian GIT repository for the PHP 5.4 beta package and found the following differences between the init scripts (here is the one from Dotdeb):

Replacing my init script with the one from the official beta package solved the problem. I wonder what export ZEND_DONT_UNLOAD_MODULES=1 does wrong.

Use Contact Form 7 to collect business leads and enquiries? I created Storage for Contact Form 7 plugin which stores them safely in WordPress database.

Get it now for only $19 →

Leave a Reply