Jun-11-2020, 05:29 AM
(This post was last modified: Jun-11-2020, 05:42 AM by PeterLinux.)
Hello, I'm new to Apache/LAMPP and CGI.
I tried the example CGI script from here:
https://wiki.python.org/moin/CgiScripts
But in my browser (at http://localhost/cgi-bin/4m.cgi)
I get the error:
I use xubuntu 20.04 Linux and the file 4m.cgi is set to the permissions: -rwxrwxr-x and owned by root.
I checked all web dev pages I could find linked from this forum, but I can't solve my problem.
I've read the chapter "Configuration" at https://wiki.python.org/moin/CgiScripts
But I don't know how to do the steps described there.
Do you know any helpful idea?
EDIT: I use Python 3.
Greetings
Peter Wiehe
I tried the example CGI script from here:
https://wiki.python.org/moin/CgiScripts
But in my browser (at http://localhost/cgi-bin/4m.cgi)
I get the error:
Error:Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
End of script output before headers: 4m.cgi
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.43 (Unix) OpenSSL/1.1.1g PHP/7.4.5 mod_perl/2.0.8-dev Perl/v5.16.3
When I try a non-existing filename in the cgi-bin directory I get a different error, so I'm sure the general web-server setup is not completely wrong. At least the error proves that it can locate the CGI file.I use xubuntu 20.04 Linux and the file 4m.cgi is set to the permissions: -rwxrwxr-x and owned by root.
I checked all web dev pages I could find linked from this forum, but I can't solve my problem.
I've read the chapter "Configuration" at https://wiki.python.org/moin/CgiScripts
But I don't know how to do the steps described there.
Do you know any helpful idea?
EDIT: I use Python 3.
Greetings
Peter Wiehe