PHP 5.4 compatibility

As of PHP 5.4, PHP-FPM no longer listens on `127.0.0.1:9000` but instead listens on `/var/run/php5-fpm.sock`. Running this module on distros with PHP 5.4> installed therefore leads to `502 Bad Gateway` errors - this PR takes care of that by changing the module's PHP template according to the new PHP-FPM server.