Talk:Raspberry Pi Script

The script seems to have a bug, from what I can tell. The symptom is, that at the very end of the script, when one's prompted to finish from the web browser, one gets an "502 bad gateway error" page served up by nginx instead of the expected configuration page.

Using the Google a bit, it turns out this is an issue when php-fpm and nginx try to talk with each other on different channels.

The script configures www.conf with a line like:

listen = /var/run/php5-fpm.sock

but it should be

listen = 127.0.0.1:9000

so that configuration file has to be modified and then php-fpm needs to be restarted; after that, the configuration page shows up as expected.

I'm running this on a BeagleBone Black, not on a RaspberryPi, but that shouldn't make the difference ;)