500 Internal Server Error; python script
Hello, for some reason I only can execute one python script inside the cgi-bin folder, scripts and folder have 755 permission, even if I copy the content of the working script to the new one, it don't work "The server encountered an internal error or misconfiguration and was unable to complete your request. "
My script:
#!/usr/bin/env python3
def main():
print("Content-type: text/html\n\n")
print
print
print("")
print(" Hola!")
print("Hola Python!")
print("\n\nal fin funcionas")
if (__name__ == "__main__"):
main()
Error Log:
No such file or directory
End of script output before headers
I'm using CENTOS 7.9 and 94.0.4 cPanel
-
Hey there! Is the ownership also correct on the file as well? 0 -
Hey there! Is the ownership also correct on the file as well?
Yes, see screenshot0 -
I'm not sure why only one of those would be working. I do see you have root access to the machine, so you can submit a ticket to have our team investigate this for you. Please post the ticket number here if you do create one so I can follow along and make sure this thread stays updated. 0 -
I'm not sure why only one of those would be working. I do see you have root access to the machine, so you can submit a ticket to have our team investigate this for you. Please post the ticket number here if you do create one so I can follow along and make sure this thread stays updated.
Done, support ticket #94315782 . Thanks0 -
Thanks for that - I'm following along with that ticket on my end now so I'll be sure to keep this thread updated with more details as I get them. 0
Please sign in to leave a comment.
Comments
5 comments