A Simple CGI Program - Why 'File Not Found'? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- teamtempest · 2014-04-07 17:48 Using Lubuntu 13.10, Lazarus 1.2, FPC 2.6.2. This is not a question about where to put a CGI executable or how to execute it. The real question follows after a long preamble which should (with any luck) outline what the answer isn't. In my baby steps way I learned about Python's simple built-in web servers. Ah! Python is already installed on Lubuntu! So I copied the website I'm working on from WinVista to Lubuntu and put it in a directory called 'www'. The pages of the website are all static (that's what I'm trying to change, but baby steps...). So I executed this command from a terminal window in the 'www' directory. Code: [Select]python -m SimpleHTTPServer Now Lubuntu's default Firefox browser can access the local website via either '127.0.0.1:8000/index.htm' (which is what the tutorial I found said) or 'localhost:8000/index.htm' (which I suspected would also work, and it does). All the pages work just like the actual website on my ISP (so: one live website and two local copies, one for Windows and one for Linux). Incidentally this where I noticed in the terminal window log file that Firefox spontaneously asked the server for 'favicon.ico'. Twice. The server denied this file existed (since it didn't) - '404' both times. Hmm. So I read up on how non-standardised all this is, sighed, created a simple one, and put it in the root directory of all three versions of the website. Firefox likes it. IE9 doesn't. Oh well. Next is to try to execute CGI program from a shiny new page with its form: Code: [Select]