Skip to content

Error 404 after creating website

josephgodwinkimani edited this page Jan 7, 2023 · 2 revisions

Reason No. 1 - Missing Virtual Host Mappings

  1. Visit OLS WebAmdin Console and Go to https://SERVER_URL:7080/index.php#view/confMgr.php?m=sl_Default

  2. Ensure your website domain record is available under that list.

  3. Restart OpenLiteSpeed using the ssh command sudo service lsws reload

Reason No. 2 - Wrong Document Root

  1. Visit OLS WebAmdin Console and Go to https://SERVER_URL:7080/index.php#view/confMgr.php?m=vh_mywebsitedomain.com&p=g

Replace vh_mywebsitedomain.com with your own domain e.g. vh_yourdomainhere.com

  1. Add /public suffix at end of Document Root for Laravel based websites or whichever folder your want to serve your website files from.

  2. Restart OpenLiteSpeed using the ssh command sudo service lsws reload

Reason No. 3 - Permissions Issue

  1. Visit CyberPanel Admin Panel and on the sidebar click Websites -> List Websites -> yourdomainhere.com -> File Manager

  2. On File Manager click on Fix Permissions

  3. If you are running a WordPress website change permalink settings and restart OpenLiteSpeed using the ssh command sudo service lsws reload

Reason No. 4 - Rewrite Rules Issue

  1. Visit CyberPanel Admin Panel and on the sidebar click Websites -> List Websites -> yourdomainhere.com -> Rewrite Rules

  2. Delete those rules and try again. The proper way to rewrite rules

If all fails

Upgrade CyberPanel