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!

Use Perl Module in uapi

Discussion in 'cPanel Developers' started by srkumar1986, Apr 5, 2018.

  1. srkumar1986

    srkumar1986 Member

    Joined:
    Mar 28, 2018
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Coimbatore, Tamil Nadu
    cPanel Access Level:
    Root Administrator
    Hello,

    I have perl module contains some functions and i need to access those functions using cpanel uapi in my php ajax calling .

    can anyone give me an idea how can i achieve this please.

    Thanks in advance.

    Rajkumar S
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,195
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    srkumar1986 likes this.
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Hi,

    Last time I did this, I had to place the module in /usr/local/cpanel/Cpanel/API. Once it was in that directory, I restarted cPanel & WHM. Then I was able to call the functions via uapi. That was a few years ago. It should still work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    srkumar1986 likes this.
  4. srkumar1986

    srkumar1986 Member

    Joined:
    Mar 28, 2018
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Coimbatore, Tamil Nadu
    cPanel Access Level:
    Root Administrator
    Thank you of both .

    Worked as per your instruction .

    It works fine.!!

    Thanks
    Rajkumar
     
    cPanelLauren likes this.
  5. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,195
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @srkumar1986

    I am really happy to hear that and very glad we could help!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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