Fixing 404 error in CyperPanel Print

  • 0

If using a NAT VPS, you will need to open a tcp port in the domain forwading tab with the source as 7080 to be able to access OLS Web Admin Console to diagnose and remediate the error.

If your firewall is active in CyberPanel, you will need to open port 7080 by going to Security --> Firewall --> Open port 7080

Now, define the user and password for OLS Web Admin with the following:

cd /usr/local/lsws/admin/misc
./admpass.sh

Following the steps below, you should now be able to resolve the 404 error.

  • Login to the OLS WebAdmin console on https://<cp_hostname_or_ip>:7080
  • On the dashboard, below the Live Feeds, you’ll see a Listeners and a Virtual Hosts tabs
  • The latter shows the number of vHosts that are up (green) and down (red)

  • Review the hosts that are not running in the Virtual Hosts tab. This will include any domain associated to a suspended Website (which is normal).

  • Spot any host that shouldn’t be there (eg. the associated Website has been recently deleted or example domain)

  • You can check if a host is defined in CP by searching in the Websites > List Websites view and in Websites > List Child Domains.

  • You can also check if a failing host has a proper Domain Mapping in the Webadmin Listeners view (Default + SSL listeners).

  • If a host is present in the Webadmin but is not present in CP or has no Domain Mapping, that’s probably the source of the problem.

  • Go to Virtual Hosts, spot the “rogue” hosts and delete them.

  • Restart OpenLiteSpeed.

 


Was this answer helpful?

Back