[Melbourne-pm] interesting apache outcome
jdthornton at ozemail.com.au
Thu Aug 21 00:49:21 PDT 2008
I did as you suggested and got:
Object not found!
The requested URL was not found on this server. If you entered the URL
manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color
So I don't know. It seems to me that there is one difference between the
files that have succeeded as CGI browser formats in the explore CGI box:
the successful ones are listed as CGI files whereas the ones I tried such as
hello.cgi are still listed as text documents.
Any more suggestions and I will try them out.
From: Jacinta Richardson [mailto:jarich at perltraining.com.au]
Sent: Thursday, 21 August 2008 4:29 PM
To: John Thornton
Cc: melbourne-pm at pm.org
Subject: Re: [Melbourne-pm] interesting apache outcome
John Thornton wrote:
> Though what is interesting is that if I go to the xammp explore and
> get into the cgi box there are two files: pearltest.cgi and cgi.cgi.
> If I put into the browser: http://localhost/cgi-bin/perltest.cgi
> then I get:
> GCI with MiniPerl
> CGI with MiniPerl is ready ...
> and if I put the cgi.cgi in instead of pearltest.cgi and the rest
> same I get:
> So I don't know. I have sort of got what I wanted in terms of getting
> browser to use a cgi file to get a desired [I assume] outcome. It's just
> that when I make my own .pl files and put all the shebang stuff etc in the
> VTC tute, and then change it to a .cgi title and move into this same cgi
> file as used above, that I still a 404 error.
Create the following file and call it hello.cgi
print CGI->headers(), "Hello";
put it in the same directory as perltest.cgi and cgi.cgi, so that if you "go
xammp explore and get into the cgi box" there are now three files:
cgi.cgi and hello.cgi.
Then go to: http://localhost/cgi-bin/hello.cgi
("`-''-/").___..--''"`-._ | Jacinta Richardson |
`6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |
(_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 |
_..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au |
(il),-'' (li),' ((!.-' | www.perltraining.com.au |
More information about the Melbourne-pm