Aug 18, 2016
24
0
51
manila, philippines
cPanel Access Level
Root Administrator
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?
 

Attachments

Last edited by a moderator:

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator
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.
 
  • Like
Reactions: cPRex
Aug 18, 2016
24
0
51
manila, philippines
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator
Do you add your A record here for hostname in WHM ?

Add an A Entry for Your Hostname

  • Home /DNS Functions /Add an A Entry for Your Hostname


HostnameServer Main IP
hostname.yourdomain.comxx.xx.xxx.xx


Please confirm the IP address to use for the "A Entry" for hostname.yourdomain.com
 

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator
I did https://$ipaddress/whm and it works... but I dont want it to work that way I want it to work like https://hostname.yourdomain.tld:2087 or https://hostname.yourdomain.tld/whm this is in the setup, but when I go to terminal that is my issue dont know why?

I also want my IP to be masked like https://hostname.yourdomain.tld as I add it at the zone as "A" "@" and "cname" "server" when I type the IP it gives me my hostname. I thought it was configure thru dns zone.
do you Cloudflare for your server and hostname ?

I believe if you have domain.com added in Cloudflare? you'd need to create the A record for hostname.yourdomain.com in Cloudflare's interface.
 
Aug 18, 2016
24
0
51
manila, philippines
cPanel Access Level
Root Administrator
Do you add your A record here for hostname in WHM ?

Add an A Entry for Your Hostname

  • Home /DNS Functions /Add an A Entry for Your Hostname


HostnameServer Main IP
hostname.yourdomain.comxx.xx.xxx.xx


Please confirm the IP address to use for the "A Entry" for hostname.yourdomain.com
 

Attachments

Aug 18, 2016
24
0
51
manila, philippines
cPanel Access Level
Root Administrator
yes I use cloudflare, for the domain and I add a cname named "server". I can browse it like https://server.domain.tld:2087

do you Cloudflare for your server and hostname ?

I believe if you have domain.com added in Cloudflare? you'd need to create the A record for hostname.yourdomain.com in Cloudflare's interface.
 

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
700
155
43
chicago
cPanel Access Level
Root Administrator
yes it is used to be a default in cloudflare *.domain.tld, domain.tld
type: Universal
Status: Active
Expires on: 2023-04-05
I’m
Not sure then maybe @cPRex has an idea if cloudflare would cause this issue ??
 

amma

Registered
May 21, 2022
1
0
0
russia
cPanel Access Level
Website Owner
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?