Just a quick heads up warning about a few problems that cropped up this morning with an update to cpanel / WHM from 11.54.x to 11.56.x on my dedicated server.
My server did it’s usual automatic daily Cpanel/WHM update and updated itself from 220.127.116.11 to 18.104.22.168 and sent a warning that it was blocked from updating to 22.214.171.124 till Wednesday Apr 27, 2016 in order to distribute upgrades over a five day period. If you wish to upgrade now, you can do so now with the force option.
I decided that I had a spare hour, having woken up early, so did a manual forced update.
I nearly panicked when towards the end of the update, I suddenly got an error 500 on all Cpanel / WHM functions and WHM/Cpanel would not respond. Websites still worked, No email available, but I could still login via SSH /FTP. I was just about to really panic and ring my hosting company / data centre , when suddenly after about 10 minutes, it all came back up. I was flooded with emails warning of services not restarting and not working.
I logged in to WHM/Panel and saw a message that cpsrvd was running an outdated binary and needed restarting. I decided the best and safest way to make sure everything was working, was to reboot the server via the Cpanel/WHM “graceful server reboot”. You can also use Your hosting control panel to physically reboot server or ask hosting company to reboot server for you.
Just be patient, don’t panic or have a heart attack. The upgrade will happen and eventually be successful, but to be safe, you might need to physically reboot server or restart lots ( most) of services via SSH.
11.56.x is a good and valuable update /upgrade to Cpanel /WHM with various new functions and security tweaks and improvements. It might be an idea to hold off for a day or two and make sure you perform the upgrade at a time that suits you, when server is at minimum load and you have time and ability to reboot the server.
One of the best features is the new site publisher feature found under the domains section of Cpanel. This allows a quick basic website to installed with one click.
Update: after going over error logs and emails more carefully, I am guessing the error 500 was caused by
Both SCGI and suEXEC are enabled. On the “Configure PHP and suEXEC” page toggle “Apache suEXEC” off then back on to disable SCGI.
I am assuming that as part of the upgrade from Cpanel /WHM 11.54 to 11.56 SCGI was temporarily enabled as PHP / CGI /Apache was upgraded and it needed to automatically reselect the correct suEXEC handler for Apache as Apache was recompiled for new upgraded PHP /CGI versions ( Yes, suEXEC is a GCI handler not a PHP handler, but the WHM setting options are combined with PHP handlers
With all the various security options and different handlers, it can cause a few heart stopping moments when WHM /Cpanel updates/upgrades select a default option that conflicts with your options and your previously set options don’t kick in until that service has restarted.
Of course, it is quite likely that if I had left the automatic update /upgrade to happen in its own good time, over the next few days. I wouldn’t have even seen any Error 500 warnings. It would have all been done while I was still asleep and I would have woken up to a shiny new Cpanel /WHM version working properly. However I am one of those paranoid users who prefer to monitor major upgrades for problems so I can get them quickly sorted and hopefully prevent hours of downtime or problems.
Since posting I am seeing various errors in the logs the main one being ( hundreds of them ) and I can’t find /usr/local/cpanel/Cpanel/Server.pm anywhere in that folder
Warning: something’s wrong at /usr/local/cpanel/Cpanel/Server.pm line 1894.
Looks like others are having various problems as well and the Cpanel forum is starting to get posts about problems