Search Engine: Elastic

Article ID: 131405, created on Sep 1, 2017, last review on Sep 1, 2017

  • Applies to:
  • Operations Automation 7.1


After upgrade of Linux distribution on NG webhost websites hosted there started to throw errors like:

Unknown: open(/var/lib/php/session/sess_de124443145c6cfd2fc8bafcf3608b61, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Session save path directory /var/lib/php/session seem to be set correctly:

# ll -d /var/lib/php/session
drwxrwx--- 2 root apache 4096  1. Sep 16:59 /var/lib/php/session

open_basedir directive allows php to write there.


Permissions on target directory - /var/lib/php/session - had been reset during installation of Linux distribution packages or by some automated script not related to OA.

Apache on Odin Automation Linux Hosting NG is launched under apache user, but since it serves requests from multitude of users, server and client permissions are separated. So effective owner of files and directories, where end-users' websites should have access to must be set to pemcln.


Change group ownership of /var/lib/php/session to pemcln:

# chown root:pemcln /var/lib/php/session

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 8c199f0ee4305da1a577740620df4a51 1941880841f714e458ae4dc3d9f3062d

Email subscription for changes to this article
Save as PDF