Posted April 13, 20241 yr Hi all, I've been struggling to get my server to support auth headers for the API. I am using Plesk to manage everything and the forum is hosted on Apache with FPM. What I've tried so far Adding CGIPassAuth on to top of .htaccess for the /api/ subfolder Adding to top FcgidPassHeader Authorization of .htaccess I tried adding both to the apache directive I've tried adding FcgidPassHeader AUTHORIZATION to the primary fcgid.conf file and restarting the service I've also tried doing a combo of all the above I tried changing SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 to SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1 in .htaccess I've tried a few things that I can't remember but I think I've tried everything that I've found from Googling maybe I missed something else that I can try. I'll appreciate all the help that I can get. Thanks! 🙂 Quick edit: I am running PHP 8.2.17 with FPM/FastCGI Server version: Apache/2.4.37 (AlmaLinux) Server built: Oct 18 2023 12:00:09 Edited April 13, 20241 yr by flashpoint
April 13, 20241 yr Community Expert 50 minutes ago, flashpoint said: PHP 8.2.17 PHP 8.2 is not supported. You will need to run 8.0 or 8.1.
April 13, 20241 yr Author 8 minutes ago, Jim M said: PHP 8.2 is not supported. You will need to run 8.0 or 8.1. No problem, downgraded to 8.0.3. I am still getting the same issue.
April 15, 20241 yr Community Expert You'd be best to contact your hosting company to ask why its not supporting the headers in the first instance