[Melbourne-pm] interesting apache outcome

John Thornton jdthornton at ozemail.com.au
Thu Aug 21 00:49:21 PDT 2008


Hmm..

    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.
Error 404
localhost
08/21/08 17:44:37
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color
PHP/5.2.6

***************
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. 

Thanks anyway
Any more suggestions and I will try them out.

John

-----Original Message-----
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
the
> same I get: 
> 
>   OK
> 
>   So I don't know. I have sort of got what I wanted in terms of getting
the
> 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

-----------------
#!/usr/bin/perl -w
use CGI;

print CGI->headers(), "Hello";
------------------

put it in the same directory as perltest.cgi and cgi.cgi, so that if you "go
to
xammp explore and get into the cgi box" there are now three files:
perltest.cgi,
cgi.cgi and hello.cgi.

Then go to:   http://localhost/cgi-bin/hello.cgi


What happens?

             Jacinta

-- 
   ("`-''-/").___..--''"`-._          |  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 mailing list