Article View: aus.computers.linux
Article #57037Re: CGI scripts
From: Matt Bottrell
Date: Mon, 25 Nov 1996 00:00
Date: Mon, 25 Nov 1996 00:00
65 lines
2626 bytes
2626 bytes
In article <3298eb8a@sydpcug.org.au> rod.cadman@sydpcug.org.au writes: > >Hi, > > I wondering if there is anyone who can help me set up RedHat 3.03, >Netscape 3.0 & apache httpd server, to test Perl CGI scripts on a standalone >PC, especially when using forms. > We'll give it a go... > Although I can get Netscape to recognise scripts when I use file links, >however when I use a URL that requires a domain name I get a DNS error, ie. >domain name not defined. It looks like I need to setup a valid DNS, (although a >bit tricky it seems any documentaion , not surprisingly, only explains how when >on a network). > Have you tried the http://localhost/path_to_my/cgi_script.cgi format. I use this from home when I'm both un-networked/networked and it works fine. > When I send a simple form, the best I can do is either just get a listing of >the CGI script in Netscape or the script (which simply prints data input in the >form) runs with the output displayed in an xterm shell but with none of the >form data. The tricky bit is knowing how to get httpd to work only with a >loopback setting. I presume it can be done but I don't know if i need to or how >to set up the name server files. > Hmmm, have you informed apache that these files are indeed scripts? It appears you might need to look at your suffixes on your CGI or even setting up the path to execute them. You might wish to take a look at a well written book by S. Gundavaran on the subject of CGI. It's called 'CGI Programming on the World Wide Web' and is published by O'Reillly and Associates, Inc. It does seem to cover a lot of the questions you are having and it also lists ways of setting up your httpd server. > Any assisance would be greatly appreciated, I realise I could connect >to an ISP who could help, but at tis stage I'm not interested in connecting, >nor connecting another PC. > > > Sounds fair... Regards, Matt. -- Matt Bottrell Phone +61-52-272-546 Systems Programmer Fax +61-52-272-010 Information Technology Services Mobile 0419-378-722 Deakin University email mattb@deakin.edu.au
Technical Details
Message-ID:
<57d7co$mgh@miranda.its.deakin.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3298eb8a@sydpcug.org.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,d000acd206f98a18 X-Google-Attributes: gid102983,public From: mattb@Deakin.Edu.Au (Matt Bottrell) Subject: Re: CGI scripts Date: 1996/11/25 Message-ID: <57d7co$mgh@miranda.its.deakin.edu.au> X-Deja-AN: 200713857 references: <3298eb8a@sydpcug.org.au> organization: Deakin University newsgroups: aus.computers.linux