Could you help me read some strings from MySQL and show them in my web browser.
This is just for my localhost.
I receive the following:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
As for my file hello.py, it is situated here:
root@ubuntu:/var/www/test1.my/www/cgi-bin# ls -l
total 8
It’s properties are as follows:
-rwxr-xr-x 1 root root 465 Nov 2 23:30 hello.py
-rwxr-xr-x 1 root root 186 Nov 2 15:59 hello.py~
Could you give me some hint what to fix?
From what I see, you need to output an empty line after writing your
Content-Type-header inhello.py:Also, you should check the apache error logs (usually at
/var/log/apache/error.log) to get more information about the error.