python75 Posted December 27, 2023 Share 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 Link to comment Share on other sites More sharing options...
python7575 Posted January 3 Share 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 Quote Link to comment Share on other sites More sharing options...
wolstech Posted January 3 Share 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. Quote Link to comment Share on other sites More sharing options...
python75 Posted January 4 Author Share Posted January 4 Hello Thank you so much for your help I really appreciate it Quote Link to comment Share on other sites More sharing options...
rovida Posted March 19 Share 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. Quote Link to comment Share on other sites More sharing options...
nightcatlu Posted March 20 Share 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. Quote Link to comment Share on other sites More sharing options...
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.