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?
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now