fopen(/usr/local/lsws/logs/error.log): failed to open stream: Permission denied

gilles

Active Member
#1
I was trying to use the log viewer in OLS webadmin and could not see any log entries.
I looked at /usr/local/lsws/logs/error.log and I am seeing this:

HTTP2-309#_AdminVHost] [STDERR] PHP Warning: fopen(/usr/local/lsws/logs/error.log): failed to open stream: Permission denied in /usr/local/lsws/admin/html.open/lib/LogViewer.php on line 185

The file permissions are as follows:
-rw-r--r-- 1 nobody nogroup 8844765 May 22 10:50 error.log

The directory somehow has the following permissions:
drwxr-x--- 2 root root 16384 May 22 10:54 /usr/local/lsws/logs/

Did something wrong happen when I updated to 1.7.16?
 

Cold-Egg

Administrator
#4
logs folder owned by root:nogroup 750
files owned by nobody:nogroup 644

The nogroup will depend on your OLS config group value.
 
Top