python75 Posted December 27, 2023 Posted December 27, 2023 Hello I try to run a python script on your server :http://python75.helioho.st/cgi-bin/test.py #!/usr/bin/python print ("test") When i launch it I have a "Internal Server Error" - Error 500 What did I miss ? How to run this script ? How to schedule it as well ? Kind regards Quote
python7575 Posted January 3, 2024 Posted January 3, 2024 Hello Happy new year ! I would like to know if anyone has a clue to help you to solve this issue. Kind regards Quote
wolstech Posted January 3, 2024 Posted January 3, 2024 Your test script was invalid. You didn't send any headers (at minimum you must send a Content-type header when Python prints to a browser), and the line endings were of type none (must be unix). I fixed the test file for you and its working now. Quote
python75 Posted January 4, 2024 Author Posted January 4, 2024 Hello Thank you so much for your help I really appreciate it Quote
rovida Posted March 19, 2024 Posted March 19, 2024 Hello, I am a newbie and I got the same problem, this is my app : #!/usr/bin/python3.10 print("Content-Type: text/html\n\n") print("Heliohost rules!") I receive this error: Forbidden You don't have permission to access /cgi-bin/test.py on this server. Quote
nightcatlu Posted March 20, 2024 Posted March 20, 2024 20 hours ago, rovida said: Hello, I am a newbie and I got the same problem, this is my app : Change htdocs/cgi-bin/test.py permission to 755 with file manager. 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.