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
python7575 Posted January 3 Posted January 3 Hello Happy new year ! I would like to know if anyone has a clue to help you to solve this issue. Kind regards
wolstech Posted January 3 Posted January 3 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.
python75 Posted January 4 Author Posted January 4 Hello Thank you so much for your help I really appreciate it
rovida Posted March 19 Posted March 19 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.
nightcatlu Posted March 20 Posted March 20 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now