PHP update on CentOS 6 causes problems for scripts running as CGI or FastCGI

Created:

2016-11-16 12:53:40 UTC

Modified:

2017-04-24 11:15:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP update on CentOS 6 causes problems for scripts running as CGI or FastCGI

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 10.4 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

After the latest PHP update is installed by the weekly Plesk update task, PHP scripts cannot manage session objects on sites that are configured to run PHP as CGI or FastCGI.

Cause

An update for PHP on CentOS 6 was released by the OS vendor and the weekly Plesk update process installed it. The PHP upgrade reset ownership settings and permissions on the /var/lib/php/session directory to their default values, preventing FTP users of domains from creating files in the directory. Since CGI and FastCGI PHP scripts run based on the privileges of FTP users, this causes problems for scripts that try to create session objects.

Resolution

The issue has been fixed in Plesk 11.0.9 Micro-Update #42 .

Workaround

Use these commands to set proper permissions and ownership settings on /var/lib/php/session :

# chmod 1733 /var/lib/php/session

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

Additional information

129051 Permissions on /var/lib/php/session/ are changed after PHP update in Plesk 12.5

Have more questions? Submit a request
Please sign in to leave a comment.