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("<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'>")
print("<TITLE> Hola!</TITLE>")
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
My script:
#!/usr/bin/env python3
def main():
print("Content-type: text/html\n\n")
print("<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'>")
print("<TITLE> Hola!</TITLE>")
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
Last edited by a moderator: