Forums Index > Mewsoft Products > Searchawy > Searchawy - WinNT4 - IIS4
Anonymous First Post Posted on: 04-17-10 03:38 PM
Searchawy - WinNT4 - IIS4

Hello All;

I have a major issue here (Then again, it could be something simple)
When I bring up: mydomain.com/cgi-bin/dir/testserver.cgi
I see?? :? The source code :?

What am I doing wrong? Is there something else in IIS that I need to do? Or is there something that I need to do to the scripts?
Please let me know, this is really annoying, and driving me absolutely crazy.

Thank You All

Wayne
mewsoft Reply #: 1 Posted on: 04-17-10 04:36 PM
Re: Searchawy - WinNT4 - IIS4

Did you mapped the ".pl" and ".cgi" to be executed by perl. From the DOS, when you click on *.cgi files it should be run by perl and not by notepad. I think thant may be the issue. ALso perl must be istalled (www.activestate.com) .

Mewsoft Support
www.mewsoft.com

Anonymous Reply #: 2 Posted on: 04-17-10 09:14 PM
Re: Searchawy - WinNT4 - IIS4

Yes I have PERL Installed. And yes I have everything linked to the perl.exe ... .pl & .cgi
And it is not Notepad that is opening up, it is Internet Explorer.
There is a setting somewhere that needs to be set.

I have posted on another forum this same questions, so when I finally get a responce that works, I will come in here, unless someone else may know the problem.

Wayne
Anonymous Reply #: 3 Posted on: 04-18-10 12:06 PM
Re: Searchawy - WinNT4 - IIS4

Got it fixed.
For some reason, IIS did not install properly the 1st go around, which made PERL not install properly as well.
But I got it now, finally see the actual page of " testserver.cgi "

Take Care all

Wayne
Anonymous Reply #: 4 Posted on: 04-18-10 01:23 PM
Re: Searchawy - WinNT4 - IIS4

On the type of the " search.cgi " page/ ( It is running now :-) )
There is this line here:

HTTP/1.1 200 OK Date: Tue, 24 Aug 2004 03:32:51 GMT Server: Microsoft-IIS/4.0 Content-type: text/html

Where is this located at? is it in the " Search.cgi " File?
If so, how do I comment it out? So that it is not visible?

First time working with CGI/PERL so, bare with me a little here.
I will not bug to much, a lot of the information I will search in the
Internet for. I love to search and find information, that is what makes
This whole thing, so much fun :-)

Wayne
mewsoft Reply #: 5 Posted on: 04-19-10 05:38 AM
Re: Searchawy - WinNT4 - IIS4

Try to run any other .cgi file in the search, for example the AddURL.cgi or ms.cgi and see if you getthis message. Did you see it with testserver.cgi?
if this only diaply with this file, then you may check this line:

print "Content-type: text/html ";

is commented:

#print "Content-type: text/html ";

at the top of the file, some thing like this:

$| = 1;
#print "Content-type: text/html ";
use CGI::Carp qw(fatalsToBrowser);


Mewsoft Support
www.mewsoft.com

carrzkiss Reply #: 6 Posted on: 04-19-10 10:08 AM
Re: Searchawy - WinNT4 - IIS4

OK, got it taken care of.
Needed to Comment-Out the following lines.

#$| = 1;

#sub Vendor
{ # this had to be moved down as it is needed in the script

#print "Content-type: text/html ";

Now it is gone.

Wayne
carrzkiss Reply #: 7 Posted on: 04-19-10 02:12 PM
Re: Searchawy - WinNT4 - IIS4

Did not get it taken care of??
This is really strang.

The /dir/index.shtml
Shows this at the top
[HTTP/1.1 200 OK Date: Tue, 24 Aug 2004 03:32:51 GMT Server: Microsoft-IIS/4.0 Content-type: text/html ]

But the " search.cgi " does not show it at the top.

So what I commented out of the code, may and may not of worked?

NT4 IIS4

Wayne
mewsoft Reply #: 8 Posted on: 04-19-10 05:31 PM
Re: Searchawy - WinNT4 - IIS4

May be you try to clear everything in the index.shtml except the SSI line which starts with <!--#exec cgi="/cgi-bin/dir/search.cgi"-->. Of course these also are server settings.

Mewsoft Support
www.mewsoft.com