Talk:Raspberry Pi Script

From FusionPBX
Revision as of 12:35, 8 September 2013 by Rcfa (talk | contribs) (Script misconfigures www.conf wrong, causing 502 bad gateway error)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 ;)