Change Running As to www:data

Cold-Egg

Administrator
#2
If you were installed from LiteSpeed repository. You can try
1. edit user & group from `/usr/local/lsws/conf/httpd_config.conf`
2. then reinstall it by command `apt-get -y install --reinstall openlitespeed `
 

Cold-Egg

Administrator
#4
I remember that a simple restart may not help to update all the files/folders permission. But if restart works for you, then it's good.
 

Firsh

New Member
#5
How can I check? I did a htop and sorted by command, most of OLS run as www-data now but two are root is that normal? https://i.snipboard.io/GoOlYE.jpg

Regarding files and folders, the lsws folder is root, but some meaningful ones in it are www-data or lsadm, (those that I expect OLS to write to). Could you please check if it's okay like this: https://i.snipboard.io/mwcKxW.jpg

I set PHP (external application) to run as the user whose home directory hosts the document root. I was under the impression that it's PHP that does most of the reads/writes from/to files so it benefits most from running as the correct user.
 
Top