Update cURL for EasyApache 4 to the latest version

EasyApache 4 from the cPanel environment is using a very old curl version. You may have issues with shop carts like WHMCS which gives you the following error message when going to Help->System Health Status.

The message states:

You currently have version 7.29.0 of cURL installed. This version is known to have security issues. Please update to the latest cURL and ensure it is greater than 7.35.0.

First let’s check the present PHP 7 curl version:

root@web [~]# php -r '$info = curl_version();echo $info["version"]."\n";'
root@web [~]#

Using the instructions from this cPanel Feature Request we will update curl to the latest version.
1. Make a backup copy of the file /etc/yum.repos.d/EA4.repo
cp /etc/yum.repos.d/EA4.repo /etc/yum.repos.d/EA4.repo.bak

2. Edit the file /etc/yum.repos.d/EA4.repo
Comment out the “mirrorlist” line and add one of the following lines according to your operating system.
CentOS 6 – 32bit: baseurl=
CentOS 6 – 64bit: baseurl=
CentOS 7 – 64bit: baseurl=

3.Run the “yum update” command.
With this action, about 80 packages were updated on our test server. Let’s check again the PHP curl version

root@web [~]# php -r '$info = curl_version();echo $info["version"]."\n";'
root@web [~]#

As you can it see we have now the latest version. It will be released to all EA4 systems during next week. Also, the WHMCS warning message is gone.

Update 21 March 2017 : the new curl version is available to all EA4 systems.

Partial DNS resolver failure – how to fix

You came here probably because you are receiving email messages from cPanel with a subject : “[yourhostcom] ⚠ Partial DNS resolver failure”.  Such emails look like:

This indicates an issue with the DNS resolvers from the file /etc/resolv.conf. So we need to remove it.

We recommend the use of the Google DNS servers – and More info at You should also talk with your web host.

To edit the file etc/resolv.conf you need to login to your server as “root”. The file contains now:


After removing the first line and adding the second Google server, it will be:

It’s very probable that you will receive such messages again after the server restart. These messages are due to the fact you are on a virtual environment and you are using a DNS system (like PowerDNS) which does not provide a caching nameserver.

How to access/log in to cPanel

The information from this article applies only to cPanel web hosting control panel.

After ordering a web hosting plan you will receive an welcome email from your host with details on how to log in to your cPanel account. We will summarize bellow a few ways on how you can access the cPanel interface. Mainly, you can use three types of URLs.

1. Using the IP of the web hosting server:

https://your-site-IP/cpanel (secure connection)
https://your-site-IP:2083 (secure connection)

2. Using your domain name: (secure connection) (secure connection)

3. Using the server’s hostname: (secure connection) (secure connection)

The server-hostname is usually something like
As you can see, you can access cPanel interface with a secure connection. You just need to use “https” (and port 2083 if you want to connect directly to the port).
On the cPanel login screen enter your username and password and click the “Log in” button.

cPanel log in screen

Please notice that not all of the above URLs may be available on your server. Also, you may be automatically redirected to secure connections.

How to get MySQL/Apache/PHP versions

You can use these commands on a virtual private server (VPS) or dedicated server running CentOS. Usually, you will use the CentOS for a web hosting server. Many times you want to check the versions of Apache, PHP and MySQL server.

For MySQL:

root@web [/home/admin]# mysql -V
mysql Ver 14.14 Distrib 5.5.29, for Linux (i686) using readline 5.1
root@web [/home/admin]# 

Notice that capital “V” from the first command.

Alternatively you can use:

root@host [/]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 273052
Server version: 5.5.28-cll MySQL Community Server (GPL)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW VARIABLES LIKE "%version%";
| Variable_name | Value |
| innodb_version | 1.1.8 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.5.28-cll |
| version_comment | MySQL Community Server (GPL) |
| version_compile_machine | i686 |
| version_compile_os | Linux |
7 rows in set (0.00 sec)

root@host [/]#

For PHP use:

root@host [/]# php -v
PHP 5.3.21 (cli) (built: Jan 27 2013 06:28:24)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
root@host [/]#

For Apache try :

root@host [/]# /usr/local/apache/bin/httpd -v
Server version: Apache/2.2.23 (Unix)
Server built: Jan 27 2013 06:23:25
Cpanel::Easy::Apache v3.16.7 rev9999
root@host [/]#

As you can see, this command will also output the Easy Apache version – if the server has cPanel installed.

Page 14 of 14
1 12 13 14