On Thu, Feb 18, 2016 at 12:47 AM, Jeremy Leonard <jrmy.l...@gmail.com> wrote: > On Tuesday, February 16, 2016 at 3:02:40 PM UTC-5, Φώντας Λαδοπρακόπουλος > wrote: >> Hello, >> >> I recentely changed VPS server and when i try to load my webiste iam >> receiving 500 error which i wasnt receiving in my old VPS server with the >> same exact cgi scripts. >> >> After looking at Apacher's error_log iam seeing the following output when i >> try to load scripts from cgi-bin directory. >> >> >> [Tue Feb 16 21:28:55.970302 2016] [cgi:error] [pid 17478] [client >> 180.76.15.28:21311] End of script output before headers: metrites.py >> [Tue Feb 16 21:29:31.193281 2016] [cgi:error] [pid 18802] [client >> 180.76.15.29:34155] End of script output before headers: metrites.py >> [Tue Feb 16 21:32:21.306627 2016] [cgi:error] [pid 17478] [client >> 188.138.124.110:40212] End of script output before headers: metrites.py >> [Tue Feb 16 21:37:21.128472 2016] [cgi:error] [pid 19731] [client >> 204.152.200.42:54376] End of script output before headers: metrites.py >> [Tue Feb 16 21:42:21.198207 2016] [cgi:error] [pid 17478] [client >> 184.75.210.226:57252] End of script output before headers: metrites.py >> [Tue Feb 16 21:47:21.228361 2016] [cgi:error] [pid 19731] [client >> 76.72.172.208:34730] End of script output before headers: metrites.py >> [Tue Feb 16 21:52:21.422066 2016] [cgi:error] [pid 18802] [client >> 85.17.156.11:52071] End of script output before headers: metrites.py >> >> >> Please i need your assistance to this. >> thank you.Prob > > If you import the cgitb module and then put cgitb.enable() in the first line > of your code this can help give you more descriptive error messages on the > page that is producing the errors >
And if that doesn't work, I'd look at the very beginning of code execution - can the Python interpreter even be found? What happens if you run one of the scripts from a shell? Maybe there's a shebang problem. ChrisA -- https://mail.python.org/mailman/listinfo/python-list