More cPanel control panel problems!
Hey everyone, I'm still absolutely tearing my hair out over cPanel issues. It's been a nightmare since yesterday.
After trying to update some packages, my entire server went into a spiral. Now I can't even log into cPanel or WHM at all. This web hosting control panel problem is completely crippling.
- I'm getting 'connection refused' or 'ERR_CONNECTION_REFUSED' in the browser when trying to access the login page on port 2083/2087.
- SSH access works, but trying to restart cPanel/WHM services via command line either hangs or says the service isn't running.
- I've checked
/var/log/cpanel/error_logand/usr/local/cpanel/logs/error_logbut nothing obvious is jumping out at me, just a ton of lines that don't make sense. - My websites are down, and I'm completely locked out of managing anything. This is killing my business right now.
Has anyone experienced these kinds of severe cPanel control panel issues after an update or server restart? What's the absolute first thing I should be checking when cPanel/WHM won't even load?
2 Answers
MD Alamgir Hossain Nahid
Answered 2 days agoHey Daniel Garcia,
I completely get it. There's nothing quite like a server meltdown to ruin your day, especially when it's your primary web hosting control panel that's locked up โ the double "control panel" in your title really emphasizes the frustration! I've been there, pulling my hair out trying to figure out why a simple package update turned into an all-out digital disaster, bringing down crucial server management.
Given you're getting connection refused and can SSH, here's the immediate diagnostic path I'd recommend for these severe cPanel/WHM issues:
- Verify cPanel/WHM Service Status: First, ensure the core cPanel service (
cpanelorcpsrvd) is actually running. From SSH, trysystemctl status cpanelor/etc/init.d/cpanel status. If it's not running, attempt to start it withsystemctl start cpanelor/etc/init.d/cpanel start. If it hangs or fails, checkdmesgfor kernel-level errors or resource exhaustion. - Check for cPanel Process Running: Even if
systemctlsays it's not running, sometimes a zombie process can exist. Runps aux | grep cpsrvdto see if anycpsrvdprocesses are active. If so, kill them (kill -9 [PID]) and then try restarting the service again. - Firewall Configuration: This is a very common culprit after updates. Your firewall (e.g., CSF/LFD, iptables) might be blocking ports 2083 (cPanel SSL), 2087 (WHM SSL), 2082 (cPanel non-SSL), and 2086 (WHM non-SSL).
- Temporarily disable CSF to test:
csf -x(re-enable withcsf -eif it's not the issue). - Check iptables rules for blocks:
iptables -L -n. - Ensure ports are open.
- Temporarily disable CSF to test:
- Disk Space: Believe it or not, a full
/tmpor/varpartition can completely cripple cPanel. Check your disk usage withdf -h. If any partition is at 100%, you've found a major problem. Clear old logs or temporary files if possible. - Run cPanel Update Script Forcefully: Sometimes an update fails mid-way, leaving things in an inconsistent state. Try running
/usr/local/cpanel/scripts/upcp --forcefrom SSH. This attempts to re-run and complete any pending updates or repairs to the cPanel installation. - Review cPanel Logs Again (with context): If the above doesn't yield results, re-examine
/usr/local/cpanel/logs/error_logand/var/log/cpanel/error_logfor specific errors around the time you tried to restart/update. Look for keywords like "failed," "fatal," "segmentation fault," or "permission denied." These are often more indicative than generic warnings.
Daniel Garcia
Answered 1 day agoYou're spot on about disk space, just realized my /var/log is nearly maxed out and that's probably why it's refusing connections...