I am absolutely not able to figure this out myself, please give me a hint before I go crazy :)
My ultimate goal is to execute a python script daily automatically. I have never done anything like this before and am completely lost. I happen to have a Webhosting from Bluehost and have learned that I might use this. Then I have checked like the first 4 pages on google trying to follow the many HowTos for this topic, however nothing was successful. I have the following code:
#!/usr/bin/python
print "Content-type: text/html\n\n"
print "Python is working fine on your server."
I added this as a file in my public_html/cgi-bin folder (btw the cgi-bin didn't yet exist?) with permission 755. Now when I open my domain/myscript.py I get the following:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I do not have terminal/SSH access to my cpanel (yet) so I cannot check whereis python, however #!/usr/bin/python is shown as example by Bluehost themselves so I assume it is correct.
Any suggestions on what to try?
Thanks and best regards