sunposa.php is a script that uses JPgraph to produce a graphic of the current sun and moon data.
Here's mine

To use it without errors, you have to upload (fully) the following directories and contents of
./jpgraph-4.4.2-sce-only/
./moonimg/
into your document root of your website.
You can see if you've done the uploads correctly by viewing
https://bsmweather.org/sunposa.php?debug=yIt currently shows
------------------------------------------------------------------
sunposa.php Version 3.70 - 14-Dec-2024
..debug=y debugging output for sunposa.php. PHP version 7.4.33
Status of needed built-in PHP functions:
function 'imagecreatefrompng()' is available
function 'imagecreatefromgif()' is available
function 'imagecreatetruecolor()' is available
function 'imagecolortransparent()' is available
function 'imagettfbbox()' is available
function 'imagettftext()' is available
function 'gregoriantojd()' is available
function 'curl_init()' is available
function 'curl_setopt()' is available
function 'curl_exec()' is available
function 'curl_error()' is available
function 'curl_getinfo()' is available
function 'curl_close()' is available
Settings used:
lat='44.958018', lon='-93.944947', tz='America/Chicago'
cacheFileDir='./cache/'
moonImagePath='./moonimg/NH-moon'
legendColor='orange' maxElevation='90'
--Warning: moonimg directory does not contain needed images.
'./moonimg/NH-moon14.gif' is missing.
jpgraph location='./jpgraph-4.4.2-src-only/'
--Warning: JPgraph not found in jploc='./jpgraph-4.4.2-src-only/'
Using internal calculations for moon data.
moon image cache './cache/jpmoon.png does not exist.
sun image NASA './cache/tempImg.gif exists. Updated 2025-02-03 12:04:09
sun image cache './cache/jpsun.gif exists. Updated 2025-02-03 12:04:09
GD Library is available and has these capabilities:
GD Version: false
FreeType Support: true
FreeType Linkage: false
GIF Read Support: true
GIF Create Support: true
JPEG Support: true
PNG Support: true
WBMP Support: true
XPM Support: true
XBM Support: true
WebP Support: true
BMP Support: true
TGA Read Support: true
JIS-mapped Japanese Font Support: false
with the bolded lines showing the missing items.