How to Fix 404 Error While Accessing cPanel
Website owners might often stumble into an HTTP 404 error because of typos in the cPanel link, DNS problems, and more. The “HTTP error 404 the requested page was not found” message essentially means that the server couldn’t find the document requested by the user, even though the client could successfully communicate with the server. The reason could be broken links, missing files, redirecting to non-existent URLs, etc. The server log analysis will help you find the root cause of the problem.
In this article, we will be discussing all the major reasons for the HTTP 404 error and how you can resolve it. The most common causes for the 404 errors are:
- Firewall Issues
- Wrong cPanel URL
- Missing cPanel Redirect
- cPanel Theme Issues
1. Local or Network Firewall Issues
The most common reason for 404 error is blocked cPanel port because of ISP or Firewall settings. cPanel operates on custom ports 2082 and 2083. However, custom ports are typically blocked by most ISPs or custom firewalls. Website owners face the page not found error when these ports are blocked on the user’s system because of ISP or firewall restriction.
The first thing you need to do is to check the telnet results to cPanel ports 2082 and 2083 from the system.
|telnet example.com 2083|
telnet example.com 2082
This will let you know whether the connections to the ports are blocked by the firewall or not. If indeed it does, you should open the cPanel ports in the firewall.
In case you don’t have access to the security firewall, you can access your cPanel account through a proxy that runs over port 80. All you have to do is access cPanel using the subdomain URL:
Keep in mind that for this to work, you need to ensure that the Proxysubdomains feature is enabled in the server. Additionally, make sure that the DNS of the subdomain “https://yourdomain.com/cpanel” points to the right server.
2. Typo in the cPanel URL
At times, website owners try to access cPanel by entering the URL manually. In that case, a typo in the server hostname, domain name, or cPanel port results in an HTTP 404 error.
It is better to first check the DN connectivity of your domain by entering the following command:
In addition, make sure that you check the cPanel URL and ensure that the server hostname, domain name, and the cPanel port are provided correctly.
3. Missing cPanel Redirect
Missing cPanel redirects are also one of the common reasons for HTTP 404 errors. Sometimes, users get 404 Not Found error, when they access cPanel using the URL “https://yourdomain.com/cpanel“. This is due to the missing alias entry in the configuration file of the web serve
Firstly, ensure that correct alias entries are added to the conf file. Script Alias directive on Apache web server is a very effective tool that can be used to add alias entries. It aliases the directory location and informs Apache that files in that directory are to be executed.
Finally, rebuild the web server configuration file and restart the server to reflect the changes.
4. cPanel Theme Issues
Many a time, website owners try to access custom software like through cPanel. This results in an HTTP 404 error when the cPanel theme doesn’t have a symlink of the custom software, or if the symlink is misdirected.
Let us take the example of Fantastico as the custom software and paper_lantern as the cPanel theme for the solution. To fix the 404 error caused due to cPanel theme issues, you would have to create a symlink that points to the fantastico installation directory.
So, we access the path ‘/usr/local/cpanel/base/frontend/paper_lantern’ and create a symlink to the fantastico directory: ‘/usr/local/cpanel/3rdparty/fantastico/’.
|ln -s /usr/local/cpanel/3rdparty/fantastico/ fantastico|
In this tutorial, we saw the most common reasons for HTTP 404 errors and their particular fixes. If all the above solutions don’t work, regenerate all the system configuration files and reset permissions using the cPanel upgrade script ‘/scripts/upcp’.