I really messed up my file permissions and owners

Cold-Egg

Administrator
#2
For OLS configs? Assume you installed it from the repository, maybe you can try to reinstall the OLS package and see if it helps.
 

Cold-Egg

Administrator
#4
Reinstalling the package won't erase the existing config or site, only the admin console password may need to be reset.

For the CentOS system,
Code:
yum -y install --reinstall openlitespeed
For the Debian/Ubuntu system,
Code:
apt-get install --reinstall openlitespeed -y
You can back up the site config before reinstalling just in case.

Let us know if it works.
 

lakay

New Member
#5
Thanks!

Tried to reinstall. Unfortunately, it did not work.

Can't access LiteSpeed Admin and can't access WordPress sites.
 

lakay

New Member
#7
Update: I was able to reinstall after updating /tmp permissions to 1777. I can access LiteSpeed admin.

New Issue: I can't start mySQL. These are the errors:
1702974681697.png
 
#9
mmm, have you checked if those file permissions back to the origin after the reinstallation?
It would be great to have a bash script or included in ols1clk.sh, or in the admin/misc directory, that would read the httpd and admin config conf files and reset the $SERVER_ROOT permissions appropriately. Maybe I should post it on the repo
 
Top