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?
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.