admin princess Your script is missing +x permission for execution. It's an error from spawn-fcgi, that can't execute the script.
princess I fixed the 403 forbidden error but now on my index file, I'm getting a 502 bad gateway? https://imgur.com/a/6qRikIF
princess admin I kept doing chmod 755 but it still gives me 502 bad gateway then it changes to 403 forbidden again.
admin princess scripts on your accounts are missing shebang so it's not possible to run it by just executing them. Add missing shebangs and try again.
admin princess Files still don't have shebang. You already have all the information needed to run the script via fcgiwrap.