Jump to content

Recommended Posts

Posted

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.

Posted (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 by man95
Posted (edited)
2 hours ago, Unknown025 said:

What kind of program are you trying to deploy?

Not too complex, just a regular CGI program.

Edited by man95
Posted

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.

Posted (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 https://man95.helioho.st/pustaka/ Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0 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 by man95
Posted (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 by man95
Posted

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.

  • wolstech changed the title to [Krydos] Install Python module legacy-cgi
  • Krydos changed the title to [Solved] Install Python module legacy-cgi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...