Reset file owners

Cold-Egg

Administrator
#2
If you don't want to fix it manually. Then you can try to restart the web server and see if it helps, or you may need to reinstall the openlitespeed package.
 

lakay

New Member
#3
Thanks for the reply.

Can I reinstall the package without wiping out my current website?

If the reinstalling wipes out all websites, what's the best way to backup the sites? I can't even access the OLS admin :(
 

Cold-Egg

Administrator
#4
The document root folder will stay, but I am not sure about your OLS VH settings on the server.

Try the following example commands manually, you can also setup another server to check and update the permissions manually.

Some important permissions:
Code:
chown -R nobody:nogroup /usr/local/lsws/autoupdate
chown -R nobody:nogroup /usr/local/lsws/cachedata
chown -R nobody:nogroup /usr/local/lsws/extapp-sock
chown -R root:nogroup /usr/local/lsws/logs
chown -R lsadm:nogroup /usr/local/lsws/conf
chown -R lsadm:lsadm  /usr/local/lsws/admin/conf
chown -R lsadm:nogroup /usr/local/lsws/admin/htpasswds
chown -R root:nogroup /usr/local/lsws/admin/logs
Note, that this is not all the folder and files, but hope it helps. And above permission is for Ubuntu, if you are using centos, please substitute the nogroup with nobody.
 
Top