Hébergements Starter, Perso, Pro ou performance - in Webhosting most Python scripts end with HTTP 500
... / in Webhosting most Python...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

in Webhosting most Python scripts end with HTTP 500

Von
Tony Wid
Erstellungsdatum 2026-04-06 14:39:30 in Hébergements Starter, Perso, Pro ou performance

In Webhosting (called from Webbrowser) *most* Python scripts end with HTTP 500,

example www.mysite.com/python/mypycript.cgi
or www.mysite.com/anyfolder/mypage.html (html contains iframe to mypyscript.cgi)

However: These scripts can be successfully executed via commandline (via Putty),
example python mypyscript.cgi.

All are in the same folder.

scripts properties:

extension = .cgi
access-right = executable (744 or 705)

Example which cannot be executed:

#!/usr/bin/python

print ("hallo wd")

What can be the reason?


1 Antwort ( Latest reply on 2026-04-06 16:32:23 Von
fritz2cat 🇧🇪 🇪🇺
)

Hello,

Have a look in your customer portal > hosting > logs > web error log

You will probably find a more comprehensive error message. Maybe Python is not supported in the environment that runs the web server (the ssh environment is different). Or the path to the python3 executable is incorrect.