Discover the top-rated web hosting providers with trusted reviews, expert comparisons, and the latest deals.
Select Currency 7 Currencies
Select Region 9 Editions
VPS Hosting

VPS (Virtual Private Server) hosting is highly popular these days, and there are VPS plans available for small, medium, and even huge business websites!

In comparison to dedicated servers, VPS is pretty low-cost, and your enterprise remains independent if you buy a VPS plan!

Cheap Hosting

If you're starting your first website, you want to spend less on premium web hosting, worry about website performance, or know anything about CPU cores. You only need to consider usability, customer service, and long-term scalability.

Our experts have compiled a list of cheap hosting providers that combine affordability and reliability.

TheWebHostingDIR

How to Resolve 404 Error in cPanel?

June 17, 2022
3,075 views
3 min read
0 comments
Share

A website owner may get an HTTP 404 error due to mistakes in the cPanel URL, DNS issues, and other factors. The message HTTP 404 the requested page was not found effectively signifies that the server could not locate the document requested by the user. Broken links, missing files, redirecting to non-existent URLs, and others could be the cause. The server log analysis will assist you in determining the source of the issue.

 

This article will go through all of the common causes of HTTP 404 errors in cPanel and how to resolve them. The following are the most prevalent causes of 404 errors:

 

  1. Firewall Issues
  2. Incorrect cPanel URL
  3. Missing cPanel Redirect
  4. cPanel Theme Issues

 

Issues with the local or network firewall:

 

The most typical reason for 404 errors is a blocked cPanel port due to firewall or ISP settings. Custom ports 2082 and 2083 are used by cPanel. ISPs and bespoke firewalls prohibit custom ports. When these are banned on the user's PC due to ISP or firewall restrictions, the page not found error occurs.

How to Fix?

 

First, you should examine the system's telnet results to cPanel ports 2082 & 2083.

 

telnet example123.com 2083

telnet example123.com 2082

 

It will tell you whether or not the firewall is blocking connections to the ports. If this is the case, the cPanel ports should open in the firewall.

 

You can access your cPanel account through a proxy that operates over port 80 if you don't have access to the security firewall. However, you have to do it by following the URL to get to cPanel:

 

 https://cpanel.example123.com

 

Keep in mind that you must have the Proxysubdomains capability activated on the server for this to operate. Make that the DNS for the subdomain https://cpanel.example123.com links to the correct server.

 

The cPanel URL has a typo.

Occasionally, website owners attempt to access cPanel by manually entering the URL. An HTTP 404 error occurs when a typo in the server hostname, domain name, or cPanel port is made.

 

How to Fix?

 

It is preferable to check your domain's DN connectivity first by running the following command:

 

 dig example123.com

 

Additionally, double-check the cPanel URL to ensure that the server hostname, domain name & cPanel port are entered correctly.

 

cPanel Redirect is Missing

 

One of the most prevalent causes of HTTP 404 errors is missing cPanel redirection. When users access cPanel via the URL https://example123.com/cpanel, they may receive a 404 Not Found error. It is due to a missing alias item in the web server's configuration file.

 

How to Fix?

 

First, make sure the alias entries in the conf file are valid. The Script Alias directive on the Apache webserver is a powerful tool for creating alias entries. It aliases the directory location and instructs Apache to execute files in that directory.

 

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

 

Finally, rebuild the webserver configuration file and restart the server to reflect the changes.

 

Problems with the cPanel theme

 

Many website owners attempt to use cPanel to access custom software. However, when the cPanel theme lacks a symlink to the custom program or the symlink is misdirected, an HTTP 404 error occurs.

 

How to Fix?

 

Let's use Fantastico as an example of custom software and paper lantern as a cPanel theme for the solution. First, you'll need to construct a symlink that points to the fantastico installation directory to fix the 404 problems caused by cPanel theme issues.

 

So we go to /usr/local/cpanel/base/frontend/paper lantern & make a symlink to the fantastico directory at '/usr/local/cpanel/3rdparty/fantastico/'.

 ln -s /usr/local/cpanel/3rdparty/fantastico

 

Final Words

 

We looked at the most common causes of HTTP 404 problems and how to repair them in this article. 

If none of the options work, use the cPanel upgrade script scripts/upcp' to regenerate all system configuration files & reset rights.

 

CLICK HERE TO GET THE BEST FREE CPANEL HOSTING

Found this guide useful?

Share it with friends, team members, or clients.

Comments & Discussion (0)

No comments yet. Be the first to share your thoughts!

Leave a Comment

Sign in to join the conversation

Please log in or create a free account to post comments, ask questions, and engage with the web hosting community.