wsphillips Posted September 11, 2004 Posted September 11, 2004 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 Quote
borfast Posted September 12, 2004 Posted September 12, 2004 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 Quote
TCH-Rick Posted September 12, 2004 Posted September 12, 2004 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. Quote
TCH-Rob Posted September 12, 2004 Posted September 12, 2004 Wayne, Welcome home and welcome to the forums. Thumbs Up Quote
TCH-Don Posted September 12, 2004 Posted September 12, 2004 Welcome to the Family Wayne 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 Quote
TCH-Bruce Posted September 12, 2004 Posted September 12, 2004 Welcome to the family, Wayne! As Don points out, the only way to use server side includes is to make the page .shtml. Quote
wsphillips Posted September 14, 2004 Author Posted September 14, 2004 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 Quote
TCH-Andy Posted September 14, 2004 Posted September 14, 2004 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. Quote
TCH-Don Posted September 14, 2004 Posted September 14, 2004 In the pages you link to I do not see any cgi scripts from your site. Which ones are they? Quote
wsphillips Posted September 20, 2004 Author Posted September 20, 2004 Oops; I took out my debug statements, now it works! BTW, I clicked the box for email notifications of replies but never got them. Wayne Quote
TCH-Don Posted September 21, 2004 Posted September 21, 2004 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.