openflex Posted October 23, 2018 Posted October 23, 2018 Are 500 server errors supposed to show something in stats/errlog.html for your website?No matter what I do, I can't seem to get anything to show up there.Is there an error file I can check to see the errors, or some other way I can see server errors and scripting language, like Python, errors?
wolstech Posted October 23, 2018 Posted October 23, 2018 No they do not. There is actually no way to see what caused one of these, you have to solve it by process of elimination. Invalid .htaccess files will cause an entire site to show one. For PHP scripts, the most common issue is permissions not being set to 644. For Python and other languages, there's far too many reasons to list (incorrect permissions, not using the cgi-bin folder, bad shebang line, using Windows line endings, bad syntax, or scripts getting stuck in infinite loops are just a few examples).
openflex Posted November 1, 2018 Author Posted November 1, 2018 Okay, for 500 errors I think I get it, but I haven't changed anything in htaccess file. Is there only Try...Except for python errors, or is there some way in Heliohost to see Python errors?
Krydos Posted November 2, 2018 Posted November 2, 2018 You can see the python errors using the cron method I wrote about in great detail at https://www.helionet.org/index/topic/29544-python-27-module-request500-error-troulbeshooting/?p=133824 The easiest way to write and debug scripts is on your home computer before you upload them to the server though.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now