JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
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.

[root@host86 ~]# pear install memcached

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

install failed

[root@host86 ~]# 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,785
335
363
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.
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
Hello,

I tried

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

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

[root@host86 ~]# /opt/cpanel/ea-php72/root/usr/bin/pecl list

[root@host86 ~]#
However, it shows no list, it just returns the prompt.
 
Last edited:

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,785
335
363
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.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
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!
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
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
270
59
178
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

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
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
270
59
178
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
270
59
178
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