need help w/ cgi install

Hi,

I just signed up for a server with HostPro, with plans to move my
current site to this new server. I need to get my counter working first.
They server I am using now had it installed for me when I ordered, but
HostPro doesn’t.

I am trying to get the popular WWW Homepage Access Counter by Muhammad A
Muquit (http://muquit.com/muquit/software/Count/Count.html). I believe I
am doing everything correctly, but apparently not. I compile and
everything, but then I try to call the counter I get a nice big red X
broken image, and “Premature end of script headers” in my error log.

I really don’t understand what is going on. Has anyone installed this
successfully and would be willing to try helping me?


Adam Gordon SBA Design - web site and graphic design
http://www.sbadesign.com adam@sbadesign.com

Re: need help w/ cgi install

Are you editing the script with a plain text editor? Your editor may be
adding cr/lf to your text document. Also, remember to upload images in
binary mode, and text/html/cgi scripts in ASCII. I suggest you edit your
script using wordpad in text only mode, then upload the data in ASCII.
If your images are broken then you may have sent them as ASCII instead
of binary.

JD

Re: need help w/ cgi install

The thing here is that I really didn’t edit anything. I downloaded the
gzip file to my computer, uploaded it to the server, expended it and
started running the commands to compile it. The .gz file was uploaded
as binary.

I didn’t open any files in a text editor through telnet, nor did I do any
editing in notepad on my computer.


Adam Gordon SBA Design - web site and graphic design
http://www.sbadesign.com adam@sbadesign.com

Virtualis Systems: <a href="http://www.hostvs.com/">http://www.hostvs.com</a> $15/yr domain registration and
parking Web hosting packages from $19.95/mo

“JD” <jd@alegate.com> wrote in message
news:9bj5mu$r6s$1@constitution.worldwebserver.com
> Are you editing the script with a plain text editor? Your editor may be
> adding cr/lf to your text document. Also, remember to upload images in
> binary mode, and text/html/cgi scripts in ASCII. I suggest you edit your
> script using wordpad in text only mode, then upload the data in ASCII.
> If your images are broken then you may have sent them as ASCII instead
> of binary.
>
> JD

Re: need help w/ cgi install

Adam Gordon wrote:
>
> The thing here is that I really didn’t edit anything. I downloaded the
> gzip file to my computer, uploaded it to the server, expended it and
> started running the commands to compile it. The .gz file was uploaded
> as binary.
>
> I didn’t open any files in a text editor through telnet, nor did I do
> any editing in notepad on my computer.

Write to my fiance about this. He’s installed this counter for us
many times.

caliban@darklock.com

Don’t expect immediate attention, he is always pretty busy. :slight_smile:


Get Paid to Surf the Web! http://www.getpaid4.com/?shenacat

Shena Delian O’Brien * http://www.darklock.com/shena/ The Graphics Kitty!

Re: need help w/ cgi install

I can help you with this stuff.

Try to run the perl script from the shell. Does it run? Change its
permissions to 755. Does it run? Some servers require permissions 750,
check if that’s your case.

“Adam Gordon” <ajgordon@eden.rutgers.edu> wrote in message
news:9bj3lt$qh7$1@constitution.worldwebserver.com
> Hi,
>
> I just signed up for a server with HostPro, with plans to move my
> current site to this new server. I need to get my counter working first.
> They server I am using now had it installed for me when I ordered, but
> HostPro doesn’t.
>
> I am trying to get the popular WWW Homepage Access Counter by Muhammad A
> Muquit (http://muquit.com/muquit/software/Count/Count.html). I believe I
am
> doing everything correctly, but apparently not. I compile and
> everything, but then I try to call the counter I get a nice big red X
> broken image,
and
> “Premature end of script headers” in my error log.
>
> I really don’t understand what is going on. Has anyone installed this
> successfully and would be willing to try helping me?
>
> –
> Adam Gordon SBA Design - web site and graphic design
> http://www.sbadesign.com adam@sbadesign.com

Re: need help w/ cgi install

On Wed, 18 Apr 2001 12:38:11 -0700 Leonid S. Knyshov at work said…

> I can help you with this stuff.
>
> Try to run the perl script from the shell. Does it run? Change its
> permissions to 755. Does it run? Some servers require permissions 750,
> check if that’s your case.

It’s not a perl script… it’s in written in C. :slight_smile:


John R. Marshall JRM Studios.com - http://www.jrmstudios.com The
Hotrodding Network - http://www.hotrodding.net

Re: need help w/ cgi install

Doesn’t matter, some steps apply :wink:

“John R. Marshall” <john@jrmstudios.com> wrote in message
news:MPG.1547b83633df965f98974e@news.worldwebserver.com
> On Wed, 18 Apr 2001 12:38:11 -0700 Leonid S. Knyshov at work said…
>
> > I can help you with this stuff.
> >
> > Try to run the perl script from the shell. Does it run? Change its
> > permissions to 755. Does it run? Some servers require permissions 750,
> > check if that’s your case.
>
> It’s not a perl script… it’s in written in C. :slight_smile:
>
> –
> John R. Marshall JRM Studios.com - http://www.jrmstudios.com The
> Hotrodding Network - http://www.hotrodding.net

Well I joined the mailing list for the counter program. I tried using the
2,6 beta version. I can get that to work fine for the ‘old way’ of using
data files for each counter. This new version uses a database if you want.
So it works fine w/ the old way (which I couldn’t get to work in the older
versions), and I guess I will just have to be happy about that.

One other cool thing about this 2.6 version is the ability to use true
type fonts instead of gif images. So you can just upload a font and use
that. Only problem I have with this is when you tell it what colors you
want (say red - ff0000) it will produce a result of 00ffff…total
opposite of what it whoudl be. The auther says it’s fine on his though.


Adam Gordon SBA Design - web site and graphic design
http://www.sbadesign.com adam@sbadesign.com

Virtualis Systems: <a href="http://www.hostvs.com/">http://www.hostvs.com</a> $15/yr domain registration and
parking Web hosting packages from $19.95/mo

“Leonid S. Knyshov at work” <lknyshov@pctips.com> wrote in message
news:9bksm4$ep3$1@constitution.worldwebserver.com
> Doesn’t matter, some steps apply
>
> “John R. Marshall” <john@jrmstudios.com> wrote in message
> news:MPG.1547b83633df965f98974e@news.worldwebserver.com
> > On Wed, 18 Apr 2001 12:38:11 -0700 Leonid S. Knyshov at work said…
> >
> > > I can help you with this stuff.
> > >
> > > Try to run the perl script from the shell. Does it run? Change its
> > > permissions to 755. Does it run? Some servers require permissions
> > > 750, check if that’s your case.
> >
> > It’s not a perl script… it’s in written in C. :slight_smile:
> >
> > –
> > John R. Marshall JRM Studios.com - http://www.jrmstudios.com The
> > Hotrodding Network - http://www.hotrodding.net