Error email from Plesk. ls: cannot open directory /usr/lib64/httpd/modules: Permission denied
CentOS Linux 7.9
Plesk Obsidian 18.0.34
I received the following email
/etc/cron.daily/logrotate:
ls: cannot open directory /usr/lib64/httpd/modules: Permission denied
failed to open semaphore file /usr/local/psa/var/utilities.sem: Permission denied
System error 13: Permission denied
Check in Plesk forum
https://talk.plesk.com/threads/issue-with-etc-cron-daily-logrotate-after-18-0-34-upd.360110/
The next update will fix it
IgorG wrote:
While the fix is preparing for release in the next Plesk update as a temporary solution, I can recommend a temporary switch SELinux off.
How to turn off SELinux
Status list
・enforcing -- SELinux is valid and access restrictions are also valid.
・permissive -- SELinux is valid, but no access restrictions are applied and a warning is output.
・disabled -- SELinux function is disabled.
Temporarily turn off SELinux
(Status quo confirmation)
# sestatus | grep "Current mode"
Current mode: enforcing
(Turn off)
# setenforce 0
(Confirmation after change)
# sestatus | grep "Current mode"
Current mode: permissive
If you want to undo:
(Status quo confirmation)
# sestatus | grep "Current mode"
Current mode: permissive
(Turn on)
# setenforce 1
(Confirmation after change)
# sestatus | grep "Current mode"
Current mode: enforcing
afterwards
Then fixed in Plesk Obsidian 18.0.34 Update 2