System installed:
CENTOS
WHM/cPanel
Cloudflare
Home / Server Configuration / Terminal
Error: The WebSocket handshake failed.
this error occurred, what am I missing when I tried searching for solution it has cagefs in which I don't have it yet. Can somebody help?
In the event that you receive an error message stating
Error: The WebSocket handshake failed when trying to use the Terminal feature in cPanel or WHM, in our experience this can happen if you are accessing cPanel / WHM via a proxy sub-domain, such as or https;//hostaname.yourdomain.com or
https://cpanel.yourdomain.com
To fix this, we suggest trying the following links to access cPanel -> Terminal:
https://$ipaddress:2083
https://$domain.tld/cpanel
https://cpanel.$domain.tld
If none of those links work, try disconnecting from any proxies or VPNs that you may be using, and also trying with other web browsers.
Also for WHM terminal
https://$ipaddress:2087
make sure you are using
https://hostname.yourdomain.tld:2087
or
https://youripaddress:2087
if for some reason you don't have a SSL Certificate for your hostname you might get this error so try and use your IP address
https://xxx.xxx.xxx.xx:2087 then login to your whm and try the terminal
if you are using a VPN you might get this error also, so try not using the VPN or try another web browser.