Page 1 of 1

CumulusMX Raspberry PI and nginx

Posted: Tue 10 May 2016 9:21 pm
by Joe Curtis
Having run Cumulus 1 for a number of years on a pc feeding an apache web server on a linux (Fedora) box (http://www.craythorneweather.info) from a Fine Offset weather station, I have changed to running MX on a raspberry pi 3. This has enabled me to get the wireless receiver and raspberry pi far closer to the weather station than was possible with my pc and eliminate the high level of signal drop outs that were occurring.
My templates are modified versions of the standard templates and the installation of the latest versions of MX and mono on the RPI went without a hitch.
At the moment I am feeding two systems from MX on the RPI, my original apache server by ftp on the fedora system which is exposed to the outside world and a nginx web server on the RPI with files copied using the 'extra web files' facility which I can browse on the local network.
As both systems use the same files they are identical with the exception of the moon graphic. The PHP coding for this works perfectly on the apache server but not on the nginx one. It's not a question of PHP not working on nginx as I can run a test PHP file and get the correct result. As it is the same file that sent to both servers I am at a loss to isolate the cause.
Any suggestion on how to narrow down my search for the error would be most welcome.

Re: CumulusMX Raspberry PI and nginx

Posted: Tue 10 May 2016 9:31 pm
by mcrossley
Do you have the PHP GD package installed?

Which moon graphic code are you using?

Re: CumulusMX Raspberry PI and nginx

Posted: Wed 11 May 2016 5:09 pm
by Joe Curtis
I am using files (and instructions) out of the moonphase.zip file from David at djmsystems. The version of PHP I have on the RPI is PHP5-FPM which is the version shown in most of the nginx configuration examples I have seen.
I'll read up on GD and substitute that. Many thanks for the pointer.

Re: CumulusMX Raspberry PI and nginx

Posted: Wed 11 May 2016 5:31 pm
by Joe Curtis
That solved it. Many thanks. I can now get on with my life!