cheaton Posted January 6, 2023 Posted January 6, 2023 #!/usr/bin/python36 print ("Content-type:text/html\r\n\r\n") print ('<html>') print ('<head>') print ('<title>Hello Word - First CGI Program</title>') print ('</head>') print ('<body>') print ('<h2>Hello Word! This is my first CGI program</h2>') print ('</body>') print ('</html>') I wrote this code as new.py into my account under /public_html/cgi-bin/ but It didn't work. I also tried to change permission 755, and tried to #!/usr/bin/python310 instead #!/usr/bin/python36. And tried to change Line break type: to Unix I wr Is Johnny server not capable with python? Quote
Krydos Posted January 6, 2023 Posted January 6, 2023 1 hour ago, cheaton said: #!/usr/bin/python36 You missed the dot. It's #!/usr/bin/python3.6 Python 3.10 will be installed soon. Quote
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.