Nginx/php5 fails with bad gateway


I’m attempting to create a debian jessie image to run nginx and serve a php5 application.

No problems serving html, but php fails:

root@49ba8612d2ff:/etc/apt# systemctl restart php5-fpm
Failed to get D-Bus connection: Unknown error -1

From a browser to a php test file:

502 Bad Gateway

I’ve made the requisite changes in the nginx default config to serve php. I’m not sure what’s going on here. Thanks for any help.