I am studying HTML and CGI. I installed Apache on the ubuntu server, it works fine as I can see the test pages. I put a new webpage that calls a sample Hello world script from /usr/lib/cgi/ bin folder but when I run it I get this error:
Not Found
The requested URL /usr/lib/cgi-bin/save_file.py was not found on this server.
Access rights for the /usr/lib/cgi-bin are all set to root:root and the permissions for the script are a+x.
The HTML file content is as following (taken from one of the samples online):
enctype="multipart/form-data" action="/usr/lib/cgi-bin/save_file.py" method="post"
(I had to remove HTML tags from here as they do not upload correctly but this is the relevant part)
Anybody has any idea why my script - save_file.py
is not found?