[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: can't run CGI scripts!



And of course i hope that u r using yr webserver to read the cgi programs,
like u must be using this to run the programs:

lynx http://localhost/cgi-bin/try.cgi


> did you try changing come settings in the httpd.conf file ?
> The fact that you see source code instead of executed code means that
apache
> doesnt know how to execute the perl file. This may be becuase the perl
> executable is not configured , either its not in the path, check if its
> really in  /usr/bin/ or /usr/local/bin or somewhere else.
>
> when you say localhost, it will load the default index file in the
> public_html folder

i guess /home/httpd/html/index.html in this case!!!!!

.
> >I have tried running the following CGI script but it just doesn't in
either
> >Lynx or Netscape:
> >#!/usr/bin/perl
> >print"Content type: text/html\n\n";
> >print"<HTML>\n";
> >print"Hi there\n";
> >print"</HTML>\n";
> >
> >I name it try.cgi
> >Whenever I try to open try.cgi in the browser window it just displays the
> >source code instead of Hi There.
> >I've tried moving the try.cgi file to /home/httpd/cgi-bin also to
> >/usr/cgi-bin as root. but no luck!
> >one more thing whenever i try to open localhost in the browser window,
the
> >"It Worked" message from apache comes.
> >If I can get a CGI script to work can I execute it from my home page at
> >www.geocities.com/sau_nanda ?
> >Thanx in advance.
> >Saurabh Nanda.
> >
> >
> >______________________________________________________
> >123India.com - India's Premier Portal
> >Get your Free Email Account at http://www.123india.com
> >
> >
> >
> >------------------------------------------------
> >An alpha version of a web based tool to manage
> >your subscription with this mailing list is at
> >http://lists.linux-india.org/cgi-bin/mj_wwwusr
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
> ------------------------------------------------
> The mailing list archives are available at
> http://lists.linux-india.org/cgi-bin/wilma/linux-delhi
>