ls -l /var/lib/php/
drwxrwx---. 3 root apache 46 Oct 25 03:00 opcache
drwxr-xr-x. 2 root root 171 Oct 27 10:15 peclxml
drwxrwx---. 2 root apache 4096 Oct 27 20:53 session
drwxrwx---. 2 root apache 6 Oct 25 03:00 wsdlcache
修改 /var/lib/php/session 所属权限
chmod nginx:nginx /var/lib/php/session
ls -l /var/lib/php/
drwxrwx---. 3 root apache 46 Oct 25 03:00 opcache
drwxr-xr-x. 2 root root 171 Oct 27 10:15 peclxml
drwxrwx---. 2 nginx nginx 4096 Oct 27 20:53 session
Nginx服务启动不了
系统更新后Nginx启动失败
journalctl -u nginx.service 中的日志为:
Starting The nginx HTTP and reverse proxy server...
nginx[2505]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx[2505]: nginx: [emerg] open() "/var/log/onlyoffice/documentserver/nginx.error.log" failed (13: Permission denied)
nginx[2505]: nginx: configuration file /etc/nginx/nginx.conf test failed
systemd[1]: nginx.service: Control process exited, code=exited status=1
systemd[1]: nginx.service: Failed with result 'exit-code'.
systemd[1]: Failed to start The nginx HTTP and reverse proxy server.