man95 Posted 19 hours ago Posted 19 hours ago Apologies if my language is rude, I just uploaded an old program of mine—from before last May crash—and it runs perfectly on my computer. However, as soon as I uploaded it, it broke like a shit, and the worst part is that the logs never tell me what the hell is wrong. I’ve tried changing permissions and following tutorials, but I’m still getting a 500 Internal Server Error. Please help me. Thx. Quote
Unknown025 Posted 18 hours ago Posted 18 hours ago An administrator will be able to look into this for you. What kind of program are you trying to deploy? Quote
man95 Posted 16 hours ago Author Posted 16 hours ago (edited) 2 hours ago, Unknown025 said: An administrator will be able to look into this for you. Yes, this is really what I needed. Thank you very much for your attention Edited 16 hours ago by man95 Quote
man95 Posted 16 hours ago Author Posted 16 hours ago (edited) 2 hours ago, Unknown025 said: What kind of program are you trying to deploy? Not too complex, just a regular CGI program. Edited 16 hours ago by man95 Quote
wolstech Posted 12 hours ago Posted 12 hours ago The error logs do in fact show what's wrong with your program. This is what I found when I logged in as you and checked your error logs. Quote AH01215: stderr from /home/man95.helioho.st/httpdocs/pustaka/pelajar.py: ModuleNotFoundError: No module named 'cgi', referer: https://man95.helioho.st/pustaka/ The built in Python cgi module is no longer supported as of version 3.13. The old server had 3.12 so it could run it, but the new one is 3.14 and cannot. Quote
man95 Posted 3 hours ago Author Posted 3 hours ago (edited) 9 hours ago, wolstech said: The error logs do in fact show what's wrong with your program. This is what I found when I logged in as you and checked your error logs. I don't know how, but my logs before 2026-07-11 07:00:00 are only like this: 2026-07-11 06:59:49 Error 2404:c0:1c92:164b:39c5:ae4:d6a2:d23f 500 POST /pustaka/pelajar.py HTTP/1.1 4.38 K Apache SSL/TLS access 2026-07-11 06:59:49 Error 2404:c0:1c92:164b:39c5:ae4:d6a2:d23f AH01215: stderr from /home/man95.helioho.st/httpdocs/pustaka/pelajar.py: failed to open log file /var/log/httpd/suexec_log, referer: https://man95.helioho.st/pustaka/ Apache error 2026-07-11 06:59:49 Error 2404:c0:1c92:164b:39c5:ae4:d6a2:d23f AH01215: stderr from /home/man95.helioho.st/httpdocs/pustaka/pelajar.py: fopen: Permission denied, referer: https://man95.helioho.st/pustaka/ Apache error 2026-07-11 06:59:49 Error 2404:c0:1c92:164b:39c5:ae4:d6a2:d23f End of script output before headers: pelajar.py, referer: https://man95.helioho.st/pustaka/ Apache error Edited 3 hours ago by man95 Quote
man95 Posted 3 hours ago Author Posted 3 hours ago (edited) 9 hours ago, wolstech said: The built in Python cgi module is no longer supported as of version 3.13. The old server had 3.12 so it could run it, but the new one is 3.14 and cannot. Can you install legacy-cgi? ( https://pypi.org/project/legacy-cgi/ ) It works on my computer. I'm using Python 3.14. Edited 3 hours ago by man95 Quote
wolstech Posted 3 hours ago Posted 3 hours ago Krydos might be able to install that module for you. As for those other logs, odds are either your domain was still setting up, or your permissions were wrong at that time. Quote
Krydos Posted 1 hour ago Posted 1 hour ago Installed. You can see the current list of installed modules for Johnny's Python 3.14 at https://johnny-info.heliohost.org/pyinfo/info3.14.py Quote
man95 Posted 38 minutes ago Author Posted 38 minutes ago Thank you all @Krydos @wolstech @Unknown025 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.