Hello,
I am experiencing a strange issue with aaPanel and OpenLiteSpeed.
Server Environment
aaPanel (latest version)
Nginx + OpenLiteSpeed
WordPress website
Website root: /www/wwwroot/domain.com
Problem Description
The website works normally after being created or restored from a backup. However, after some time (without making any changes), the entire website starts returning a 404 error.
The error displayed is:
404
Not Found
The resource requested could not be found on this server!
This affects:
Homepage
All WordPress pages
/wp-admin
/wp-login.php
Even manually created files such as test.php
For example, I created a simple test.php file containing phpinfo(), and when the issue occurs, even that file returns a 404 error.
Troubleshooting Performed
Verified that all WordPress files exist.
Verified that the website root is correctly set to:
/www/wwwroot/domain.com
Verified file permissions.
Verified that OpenLiteSpeed rewrite rules are enabled.
Confirmed that the issue is not caused by WordPress because even static PHP files return 404.
Created a brand-new website in aaPanel using the same OpenLiteSpeed installation, and the new website works correctly.
Deleted the affected website from aaPanel and recreated it using the same files and database. After recreation, the website works again.
Important Observation
The recreated website works perfectly at first, but after some time, the same issue returns automatically.
This makes me suspect that:
The OpenLiteSpeed virtual host configuration may be getting corrupted.
Domain mappings or listener mappings may be disappearing.
aaPanel may be automatically regenerating an incorrect OpenLiteSpeed configuration.
Questions
Has anyone experienced OpenLiteSpeed websites randomly returning 404 errors in aaPanel?
Is there a known issue with virtual host mappings being overwritten?
Which logs should I check to identify why the website configuration changes over time?
Is there a way to prevent aaPanel from automatically modifying OpenLiteSpeed virtual host configurations?
Any help would be greatly appreciated.
Thank you.