Errors while using Upcp

cPanel is one of the most popular Linux-based control panels for web hosting accounts. It lets you conveniently manage all services in a single place. Currently, cPanel is the industry standard and most web developers are well acquainted with it.

cPanel has two interfaces, a user interface called cPanel and a server management interface called Web Host Manager (WHM). This combination allows users to manage their website and supplies hosting providers with tools to manage the server.

/scripts/upcp script lets you update cPanel & WHM on the command line.

Normally upcp is used as a silver bullet for many cPanel-related problems, but what happens when upcp itself has a problem? If you’re seeing an error like the one below when running this script, then continue reading!


#[email protected] [~]# /scripts/upcp
#/scripts/upcp syntax OK
Running Futex Check/Fix......Done
Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273


The fix here is to grab a static update script from cPanel’s mirror which will re-link and fix any critical cPanel PERL modules that are broken or missing. Bash one-liner to follow:

wget -O /root/updatenow.static
&& perl /root/updatenow.static --manual

Once complete, run /scripts/upcp --force again.