Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

AppConfig : phpHandler doesn't work

Discussion in 'cPanel Developers' started by tizoo, Mar 30, 2014.

  1. tizoo

    tizoo Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    156
    Hi all,

    We try to register our plugin using AppConfig. As the plugin needs a special PHP module, we try to use the *phpHandler* key to avoid tainting the original php.ini file.

    We have the following config file :

    Code:
    name=foo
    url=/foo/
    service=whostmgr
    user=root
    phpHandler=foo
    acls=all
    displayname=Foo plugin
    entryurl=../foo/index.php
    We have created the directory /usr/local/cpanel/3rdparty/etc/foo and copied the original php.ini in it.

    The AppConfig registration succeed and the plugin appear in WHM (Home » Development » Apps Managed by AppConfig) but nothing is displayed in the *PHP Config* column and when running the plugin, the custom php.ini file is not used.

    We then have a look at how is this implemented by *phpmyadmin*, *roundcube*, etc. And do the same, that mean create a link */usr/local/cpanel/3rdparty/etc/foo/php.ini* to */usr/local/cpanel/3rdparty/php/54/etc/foo/php.ini* (which is not what is in the documentation). But the result is the same, our custom php.ini is not used.

    Is there a way to see what exactely do *register_appconfig* like a -d/--debug flag ?

    Or maybe could we do something manually after have run *register_appconfig* to make this works ?

    Thanks in advance for any information.

    Philippe Ney
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Could you open a support ticket using the link in my signature so we can take a closer look at your exact configuration and look for any particular issues? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tizoo

    tizoo Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    156
    Hi Michael,

    Thanks for your answer, the ticket is created : Your Request id is: 4759651.

    Cheers,
    Philippe
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    To update, the solution offered in the support ticket was to utilize a postupcp script to copy over the custom php.ini files after the update.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - AppConfig phpHandler doesn't
  1. Glyn Szasz
    Replies:
    3
    Views:
    684

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice