/
/
"Couldn’t connect to server" error when opening phpMyAdmin from the server

"Couldn’t connect to server" error when opening phpMyAdmin from the server

Symptoms

When attempting to open phpMyAdmin via cURL using the control panel's domain-based URL, the following error occurs: "Couldn’t connect to server":

# curl -Ik https://<panel_address>
curl: (7) Failed to connect to <panel_address> port 443 after 1 ms: Couldn't connect to server

Cause

The /etc/hosts file contains a mapping between the IP address 127.0.0.1 and the control panel's address.

Solution

Remove the mapping between the control panel's domain name and the IP address 127.0.0.1 from the /etc/hosts file, for example:

127.0.0.1 ispmgr.domain.com

In this article