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.

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:
    66
    Likes Received:
    0
    Trophy Points:
    6
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. tizoo

    tizoo Well-Known Member

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

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

    Cheers,
    Philippe
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     

Share This Page