in Uncategorized

Fixing: init: php5-fpm main process (4321) terminated with status 78

The process that upstart was watching died, but the pool workers are still running. To fix it, run:

#kill all php processes
sudo kill -9 $(ps aux | grep '[p]hp' | awk '{print $2}')

php5-fpm --fpm-config /etc/php5/fpm/php-fpm.conf

#or

#restart php
sudo service php5-fpm restart