简体   繁体   中英

Internal Server Error on using python on web server with cpanel

I am newer to python. I have cpanel. I have written this basic code and uploaded on cgi-bin folder on my web server

#! /usr/bin/python
 print "Content-type: text/html\n\n"
 print "<html>Hello world!</html>" '

but on executing this page on browser it is giving

Internal Server Error

I have changed permission of my script to 777 but it is still not working.

Trying running that code directly from the python console..

You should see this SyntaxError: EOL while scanning string literal

print "<html>Hello world!</html>" 

You have an extra '

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM