How to Fix 404 Error While Accessing cPanel

How to Fix 404 Error While Accessing cPanel

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.

Fix:

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:

“https://cpanel.example.com“

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://cpanel.example.com” 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.

Fix:

It is better to first check the DN connectivity of your domain by entering the following command:

dig example.com

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://example.com/cpanel“. This is due to the missing alias entry in the configuration file of the web serve

Fix:

Firstly, ensure that correct alias entries are added in 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.

Hence, add the following code to the Apache configuration file for redirecting all requests with /cpanel to the original cPanel location.

ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi

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.

Fix:

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

Conclusion

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’.

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top