{
    "failures": 0,
    "checks": [
        {
            "name": "PHP is executing",
            "ok": true,
            "detail": "PHP 8.2.33 via litespeed",
            "fix": ""
        },
        {
            "name": "Script path",
            "ok": true,
            "detail": "Running as \/api\/check.php",
            "fix": "The app requests api\/metar.php relative to index.html. This file must sit in public_html\/api\/."
        },
        {
            "name": "api\/metar.php present",
            "ok": true,
            "detail": "5,866 bytes",
            "fix": "Upload metar.php into the api\/ folder. Check it was not renamed to metar.php.txt by the upload."
        },
        {
            "name": "cURL extension",
            "ok": true,
            "detail": "8.21.0",
            "fix": "In cPanel: Select PHP Version \u2192 Extensions \u2192 tick \"curl\". If unavailable, metar.php will fall back to file_get_contents."
        },
        {
            "name": "allow_url_fopen (fallback)",
            "ok": true,
            "detail": "on",
            "fix": "Only needed if cURL is missing."
        },
        {
            "name": "Cache directory writable",
            "ok": true,
            "detail": "\/home\/pretillz\/public_html\/api\/cache",
            "fix": "Create public_html\/api\/cache and set permissions to 755."
        },
        {
            "name": "Outbound HTTPS to aviationweather.gov",
            "ok": true,
            "detail": "HTTP 200 in 5475 ms, 435 bytes",
            "fix": "Shared hosts sometimes block outbound connections or require a proxy. Ask Namecheap support to allow outbound HTTPS to aviationweather.gov, or see README \u00a78 for the paste-in-wind fallback."
        },
        {
            "name": "FAA returned usable JSON",
            "ok": true,
            "detail": "KLNS: METAR KLNS 162153Z 19005KT 10SM CLR 28\/18 A3027 RMK AO2 SLP249 T028301",
            "fix": "If the upstream shape changed, metar.php needs its field names updated."
        },
        {
            "name": "api\/metar.php answers correctly",
            "ok": true,
            "detail": "station KLNS, wind 190\u00b0 5 kt",
            "fix": "If this returns HTML, Apache is not handing .php to PHP, or a 404 page is being served \u2014 see the note below."
        },
        {
            "name": "Served over HTTPS",
            "ok": true,
            "detail": "yes",
            "fix": "cPanel \u2192 SSL\/TLS Status \u2192 run AutoSSL."
        }
    ]
}