The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPanel CGI SCRIPTS COUNTER NOT WORKING

Discussion in 'General Discussion' started by jacobvar, Mar 26, 2003.

  1. jacobvar

    jacobvar Member

    Joined:
    Mar 14, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    From CPanel CGI Scripts i added the counter script so that i can put it in my site has directed i copied the HTML Code as directed by me and pasted it where i want the counter, but it was showing not able to write to /var/cpanel/jac.dat now what is te error how will i solve the problem anyone please help me.

    Thanks in advance

    regards
    jacob
     
  2. wimp

    wimp Well-Known Member

    Joined:
    Jul 13, 2002
    Messages:
    301
    Likes Received:
    0
    Trophy Points:
    16
    do you Enable suexe or update with easyapache ?

    Anyway..
    in root go to:
    cd /var/cpanel/Counters

    and the

    chmod 666 jac.dat


    bye
     
  3. Easy

    Easy Member

    Joined:
    Feb 10, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I periodically get this when I add a new counter to a page. Sometimes the next day it is working - usually not.

    Changing the counter name seems to work.

    If anyone knows how to get this to work each time I'd like to know, also
     
  4. chrisben

    chrisben Member

    Joined:
    Feb 6, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sydney, Australia
    did you check the chown, i

    it's the most common problem with cpanel

    thanks
    Chrisben
    Firewall security agent
    Matrix Solutions
     
  5. jmc67

    jmc67 Well-Known Member

    Joined:
    Mar 10, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    I'm having this same problem. Files are set to the owner and permission set to 755. I also tried 777 and owner nobody. Nothing is working. I am running Cpanel 6.2.0 S56. Need help!
     
  6. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
  7. meweb

    meweb Well-Known Member

    Joined:
    Feb 10, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    0
    Hello

    goto /var/cpanel/Counters

    just give

    chown nobody.nobody *

    and it will work
     
  8. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    16
    Reason for counter not working

    I think I may have figured out why the counter isn't assigning the correct user to the .dat file. If you have say user "A", with domain "A.com", and they login to their cpanel with "A.com:2082", then create the counter file, the counter seems to work fine.

    However, if they login to their cpanel, using another domain that is on your server, but NOT assigned to them, such as "B.com:2082", it will still create the file, but the permission wont be assigned to the right user, so you'll get the error when you try using the counter from the A.com domain. Now if cpanel can make a fix for this, we'll all be in good shape.....

    Ed
     
  9. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Interesting theory. That probably explains why people whos DNS has not resolved and try to get their sites up quickly by loggin in at http://ip:/~username/ are having this problem instead of waiting for their DNS to resolve so they can create the counter from http://theirdomain.com.
     
  10. timtak

    timtak Member

    Joined:
    May 21, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    This is so cool! Thank you - now I know why!

    I am just a user with Ipowerweb but I have been having this counter problem for ages.

    The problem was that had linked to the temporary cpanel address that my host sent me when I first joined up (it was not until quite recently that i realise that I could to www.mydomain/cpanel) since for most it worked fine.

    But the counters just would not work on my pages.

    Likewise the counters that I created using that temporary link are
    not recognisable when I log into cpanel using mydoman/cpanel.

    Thanks so much for this. I was sick of contacting technical support.

    Counters work fine now...

    Except that is, I still don't know how to use the dreaded "Color Exchanger."

    Tim

    cPanel.net Support Ticket Number:
     
  11. imagic

    imagic Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Please Help!

    On one of our servers, we can't get counters to create correctly. If you are in a control panel, having gone in at the address domain.com/cpanel and go to the Counters page, which is supposed to let you create a counter, clock, or date, and click on preview, you get a broken image for any of the 3 (counter, clock, or date).

    And it doesn't create the .dat file in /var/cpanel/Counters

    Somehow, some counters were created (also with broken images) and these worked when we disabled suexec. But then a form stopped working that had been working. So we enabled suexec, the form started working and the counter images were broken again.

    Anybody have any ideas? Your help would be much appreciated.

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  12. imagic

    imagic Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Found the solution

    Just wanted to let everyone know, we figured out the solution. It was that Count.cgi was owned by root root instead of root wheel. When we changed it, the counters magically started working and we were able to create new ones.

    cPanel.net Support Ticket Number:
     
  13. Testube

    Testube Registered

    Joined:
    Jun 8, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Counters on subpages still not working...

    Well, I had submitted a ticket on 6/4 to get my counters working again, and my main counter now works fine, but all other counters in sub-folders on my domain are still giving me the "could not write to whatever.dat file" error.

    I'm on a virtual account, no shell access (as far as I know).
    Anything else I can do to get this fixed?

    Thanks,

    jeff / Testube.com :confused:

    cPanel.net Support Ticket Number: 31245
     
Loading...

Share This Page