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.

function hook doesn't run

Discussion in 'cPanel Developers' started by danmc, May 8, 2012.

  1. danmc

    danmc Member

    Joined:
    May 18, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    I have a function hook written in PHP on server A that works well after an Addon is added. Needing the same functionality on Server B, I moved the hook over and set it up in the same manner with all permissions set up the same way. I then registered it via /usr/local/cpanel/bin/register_hooks. The problem is it doesn't seem to run!

    The hook should write various things to a log file, but the log file is empty. I'm not sure where to begin to figure out why. I'm hoping someone can give me a clue of what to look at that might give me some idea about why it does not seem to run.

    Both servers are running Cpanel version 11.32.2 (build 25). Both have php-cgi in the same location

    Thanks
    Dan
     
  2. danmc

    danmc Member

    Joined:
    May 18, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Disregard...stupid permission problem was the culprit in the end.
     
Loading...

Share This Page