Jump to content

Recommended Posts

Posted

My old web host went bankrupt so I moved to TCH. I have my own CGI

counter script which worked fine on my old Linux/Apache host, but

it doesn't work here. I did CHMOD 755 on the script. The script

works fine on TCH as a cron job but not when called from a web page,

so the problem must be in the call. This call worked on my old host

but gives no output here:

<!--#exec cgi="cgi-bin/counter.cgi" -->

 

This also gives no output:

<!--#exec cgi="./cgi-bin/counter.cgi" -->

 

This gives an error message, "[an error occurred while processing

this directive]":

<!--#exec cgi="/cgi-bin/counter.cgi" -->

 

I'd appreciate any help.

Thanks,

Wayne

Posted

First of all, welcome to the family, Wayne Thumbs Up

 

Unfortunately, I don't know how to help you with this issue but we have many knowledgeable folks in the forums and I'm sure someone will drop by and help you out in no time :blink:

Posted

You haven't provided much information that would help in troubleshooting the problem. If you look in the Error Log in your CPanel there may be some messages there that can help. Also, if you can provide a url to the page so we can see where the error is occurring we might be able to see more.

Posted

:blink: Welcome to the Family Wayne :dance:

 

and your new home!

 

is the <!--#exec cgi="cgi-bin/counter.cgi" -->

in a page with the .shtml extension?

I know it mus be, but just double checking.

 

Or you can get a cgi counter in your cpanel > cgi scripts.

It may be close to what you had,

and can be styled and set to a starting number.

 

 

We really are like family here.

So if you need anything,

just ask your new family!

We love to help :)

Posted

Hi again,

Thanks for the warm welcome!

 

My files are all .htm. I added lines to .htaccess so .htm files would be

parsed for SSI. I put an include at the bottom of the file to prove to

myself that SSI is working.

 

Just for kicks, I copied my index.htm to index.shtml. Same error.

 

Cpanel Error Log excerpt:

 

[Mon Sep 13 19:15:41 2004] [error] [client 204.48.233.58] invalid CGI ref "/cgi-bin/counter.cgi" in /home/tpalsor/public_html/index.htm

[Mon Sep 13 19:14:26 2004] [error] [client 204.48.233.58] invalid CGI ref "/cgi-bin/counter.cgi" in /home/tpalsor/public_html/index.shtml

 

Pages are at:

http://66.36.231.135/~tpalsor/index.htm

 

http://66.36.231.135/~tpalsor/index.shtml

 

Ideas?

TIA,

Wayne

Posted

Hi Wayne.

 

Do you have a domain name? or are you just trying to get it working with the IP address?

 

If you are using the IP address, then it will just be cgi-bin or /home/tpalsor/public_html/cgi-bin not /cgi-bin

 

Some scripts etc will also not work until your domain name has propagated.

Posted

Glad you have it working!

 

For e-mail

did you set the options in My Controls for

e-mail settings

Enable 'Email Notification' by default?

Enabling this option will automatically subscribe you to any topic you start or reply to.

 

And in board setting you may want to set

Do you wish to get a pop up notification when you get a new private message? to YES

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...