Help to install PECL memcached module

JIKOmetrix

Well-Known Member
Apr 3, 2007
105
12
168
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
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,543
208
343
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.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,543
208
343
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.
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
105
12
168
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
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
105
12
168
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.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,110
659
263
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.
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
105
12
168
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.

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.
 
  • Like
Reactions: cPanelLauren

JIKOmetrix

Well-Known Member
Apr 3, 2007
105
12
168
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
 
  • Like
Reactions: cPanelLauren