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!

Help to install PECL memcached module

Discussion in 'General Discussion' started by JIKOmetrix, Jun 14, 2019.

  1. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    Hello,

    I have installed memcached on a server and am now trying to install PECL memcached module.

    Pear is installed and works however when I try to install pecl modules I get command not found.

    [[email protected] ~]# pear install memcached

    No releases available for package "pear.php.net/memcached" - package pecl/memcached can be installed with "pecl install memcached"

    install failed

    [[email protected] ~]# pecl install memcached

    -bash: pecl: command not found​

    Any pointers on how to get pecl working?

    - Mike
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,484
    Likes Received:
    187
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Assuming you are on ea4, the command would look like:

    /opt/cpanel/ea-php72/root/usr/bin/pecl install memcached

    You should change the php path to reflect the version you want to install for.

    You can also use the module installer in WHM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    My module installer does not show any available modules in WHM. See attached.

    I'll try the command line you offered.
     

    Attached Files:

  4. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    Hello,

    I tried

    /opt/cpanel/ea-php72/root/usr/bin/pecl list

    [[email protected] ~]# /opt/cpanel/ea-php72/root/usr/bin/pecl install memcached

    [[email protected] ~]# /opt/cpanel/ea-php72/root/usr/bin/pecl list

    [[email protected] ~]#
    However, it shows no list, it just returns the prompt.
     
    #4 JIKOmetrix, Jun 14, 2019
    Last edited: Jun 14, 2019
  5. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,484
    Likes Received:
    187
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    that is quite odd. I don't think we could gather enough data in the forums to help you fix this and I've not seen it before. You could try running /scripts/check_cpanel_rpms --fix but I don't have a lot of hope there as that runs every night.

    Short of that I would put a ticket in with cPanel.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,457
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    That is odd It is defintely available:

    memcached.png

    I think further investigation would be warrnated in this case, can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    Hello,

    I have created ticket 12611913.

    I do also get a odd error when trying to setup remote access to the server.

    Error:WHM Authorization failed with the following error: SSHd is not listening on port “22” for ticket ID “12611913” and server “1”. Access the cPanel Customer Portal (cPanel Customer Portal) and update the authentication information or select the correct ticket ID and server.. You may skip this server or correct the problem and try again.​

    My SSH is running on a non-standard port. I provided that port in the remote access setup page. Yet cPanel remote access does not use the port and instead continues to try port 22.

    - Mike
     
  8. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    So I open a ticket and the support tech makes to the live production server without asking if NOW is a good time!!!!!!!!!

    WHY, WHY cannot the tech ask question before diving headlong into creating BIGGER PROBLEMS ON THE LIVE SERVER.

    GOD THIS JUST SCREWS UP MY ENTIRE DAY NOW.

    I should know better than to ask for help.
     
  9. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,457
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @JIKOmetrix

    I'm sorry to hear you were experiencing issues with the ticket, it looks like the supervisor has been in contact with you and they're working on sorting the issue out for you as well as identifying why the PECL installer issue is occurring. I also see that one of our Level 3 analysts is working on the issue currently and should be updating you further.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    Hello,

    Yes, thank you. I was not clear how to get someones attention. Reporting the ticket to management was how I was able to get things addressed.

     
    cPanelLauren likes this.
  11. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    Hello,

    So in the end, It turned out to be an issue with my open_basedir paths. After setting my PHP7.2 open_basedir:

    /dev/urandom:/home/:/tmp:/opt/cpanel/composer/bin:/usr/local/bin:/root:/opt/cpanel/ea-php72/root/usr/bin/:/opt/cpanel/ea-php72/root/usr:/opt/cpanel/ea-php72/root/etc:/var/cpanel/php/sessions/ea-php72:/opt/cpanel/ea-php72/root/usr/share/pear/:/usr

    and running:
    yum install libmemcached-devel

    I was able to install the PECL memcached module for PHP7.2

    Thanks,
    Mike
     
    cPanelLauren likes this.
  12. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,457
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I'm really glad to hear that the issue is resolved now and you were able to get to the bottom of it!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. JIKOmetrix

    JIKOmetrix Well-Known Member

    Joined:
    Apr 3, 2007
    Messages:
    98
    Likes Received:
    11
    Trophy Points:
    158
    Thanks for you assistance in this matter.
     
    cPanelLauren likes this.
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