PEAR PDO XML Not Installing After PHP Upgrade

MojoCreations

Active Member
Feb 14, 2012
31
0
56
cPanel Access Level
Root Administrator
I have upgraded all websites from 5.6 to 7.2. When provisioning using EasyApache4 I made sure that the XML, PDO, PEAR packages were all active. I am getting a PDO driver issue even though i have extension = pdo.so and extension = pdo_mysql.so active in the sites php.ini. Further research on this forum lead me to believe that I have a faulty install of PEAR. I have provisioned each PHP version but I am still having issues connecting with PDO.

---WHM PHP EXTENSION INSTALL EFFORT---
I performed the following in the backend of WHM in hopes of installing the PEAR package and I get this error.

XML-Util
Code:
Updating PHP Extensions and Applications Package "XML_Util"
Error getting channel info from pear.php.net: Connection to `pear.php.net:80' failed: Connection refused
Nothing to upgrade
PEAR
Code:
Updating PHP Extensions and Applications Package "PEAR"
No releases available for package "pear.php.net/PEAR"
upgrade failed
--COMMAND LINE PEAR INSTALLATION EFFORTS FAILED---
Code:
# /usr/local/bin/pear install -f PEAR-1.10.              7
No releases available for package "pear.php.net/PEAR"
install failed
Code:
/usr/local/bin/pear upgrade -a http://download.pear.php.net/package/PEAR-1.10.7.tar
Could not download from "http://download.pear.php.net/package/PEAR-1.10.7.tar" (              Connection to `download.pear.php.net:80' failed: Connection refused)
Invalid or missing remote package file
upgrade failed
Code:
/usr/local/bin/pear upgrade -a http://pear.php.net/get/PEAR-1.10.7.tar
Could not download from "http://pear.php.net/get/PEAR-1.10.7.tar" (Connection to               `pear.php.net:80' failed: Connection refused)
Invalid or missing remote package file
upgrade failed
---PHP, PEAR & PECL COMMAND LINE RESULTS---
/usr/local/bin/php -v
Code:
#/usr/local/bin/php -v
PHP 7.2.13 (cli) (built: Jan  4 2019 21:02:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright (c) 2002-2018, by ionCube Ltd.
    with Zend OPcache v7.2.13, Copyright (c) 1999-2018, by Zend Technologies
#which pear
Code:
/usr/local/bin/pear
#pear config-get php_dir
Code:
/opt/cpanel/ea-php72/root/usr/share/pear
/usr/local/bin/pear -V
Code:
# /usr/local/bin/pear -V
PEAR Version: 1.10.1
PHP Version: 7.2.13
Zend Engine Version: 3.2.0
/usr/local/bin/pecl -V
Code:
# /usr/local/bin/pecl -V
PEAR Version: 1.10.1
PHP Version: 7.2.13
Zend Engine Version: 3.2.0
cd /var/cpanel/easy/apache && grep -HinR pear profile
Code:
]# cd /var/cpanel/easy/apache && grep -HinR pear profile
profile/makecpphp.profile.yaml:130:Cpanel::Easy::PHP5::Pear: 0
profile/_prev.yaml:145:"Cpanel::Easy::PHP5::Pear": 0
profile/_main.yaml:145:"Cpanel::Easy::PHP5::Pear": 0
profile/_last_success.yaml:145:"Cpanel::Easy::PHP5::Pear": 0
profile/custom/cpanel_centos_mpmitk.yaml:132:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_cloud_mpmitk.yaml:132:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_no_php.yaml:126:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_php_img.yaml:126:Cpanel::Easy::PHP5::Pear: 0
profile/custom/transfer.yaml:147:"Cpanel::Easy::PHP5::Pear": 0
profile/custom/cpanel_php_sec.yaml:126:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_php_enc.yaml:126:Cpanel::Easy::PHP5::Pear: 0
profile/custom/Apache24withPHP55.yaml:143:"Cpanel::Easy::PHP5::Pear": 0
profile/custom/cpanel_centos_ruid2.yaml:132:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_default.yaml:132:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_php_enc_img.yaml:126:Cpanel::Easy::PHP5::Pear: 0
profile/custom/cpanel_default22.yaml:131:Cpanel::Easy::PHP5::Pear: 0
PHP INFO PDO RESULTS
- Removed -

INSTALLED PHP EXTENSIONS AND APPLICATIONS (WHM)
- Removed -
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Error getting channel info from pear.php.net: Connection to `pear.php.net:80' failed: Connection refused
Hello @MojoCreations,

Can you check to see if your server is able to successfully connect to pear.php.net? EX:

Code:
traceroute pear.php.net
Thank you.