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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    372
    Likes Received:
    21
    Trophy Points:
    93
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    srkumar1986 likes this.
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,553
    Likes Received:
    40
    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.
     
    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
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    372
    Likes Received:
    21
    Trophy Points:
    93
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @srkumar1986

    I am really happy to hear that and very glad we could help!
     
Loading...

Share This Page