The issue you’re describing on Ubuntu 24.04 with CyberPanel 2.4.4 is related to permission handling changes in the latest Ubuntu release combined with how OpenLiteSpeed runs PHP processes under user isolation.
In Ubuntu 24.04, the default umask and file ownership model are slightly different, and when CyberPanel’s “Fix Permissions” button is used, it applies ownership recursively but may assign files to root or reset group permissions incorrectly — especially if the virtual host user (e.g. domain.com) isn’t properly mapped to the web server user (nobody, www-data, or nobody:nogroup depending on setup).
That’s why the site returns 403 Forbidden — the web server loses read access after “Fix Permissions”.
Those two commands are the correct and secure way to restore file and folder permissions.
find /home/domain.com/public_html -type d -exec chmod 755 {} \;
sets all directories to 755 (readable and executable by everyone, writable only by the owner), which is required for the web server to access them.
find /home/domain.com/public_html -type f -exec chmod 644 {} \;
- sets all files to
644 (readable by everyone, writable only by the owner), which is standard for web content.
Using these permissions is much safer than chmod -R 777, and it should fix the 403 errors as long as the files are owned by the correct user (for example, domain.com:domain.com or the user that runs the website).