• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Issue php fastcgi is not working = 500 (fpm works)

Hotte

New Pleskian
Hi,

If I switch from php-fpm(7.2.14) to php-fastCGi i get ERROR 500.

The Log shows me mod_fcgid: stderr: PHP Fatal error: Uncaught RuntimeException: Unable to write in the Proxy directory (/var/www/vhosts/domain.com/httpdocs/var/cache/production_201812/proxies)

First I thought it's a permission thing, but fpm works and vhost root is usr psasrv, Folder&Files are usr psacln

Has anyone a hint for me?

Tahnks you

Debian9.7 Plesk17.8.11 Update #37 PHP7.2.14 (Same modules active)
 
I am not aware that in Plesk there is such a thing like a "proxy directory". This sounds more like an application error. I think this was a shop system where this error occurs.

Make sure that the path domain.com/httpdocs/var/cache/production_201812/proxies exists and that is is writeable for <web user> : psacln, for example by applying:

Code:
# chmod 0755 /var/www/vhosts/domain.com/httpdocs/var
# chmod 0755 /var/www/vhosts/domain.com/httpdocs/var/cache
# chmod 0755 /var/www/vhosts/domain.com/httpdocs/var/cache/production_201812
# chmod 0755 /var/www/vhosts/domain.com/httpdocs/var/cache/production_201812/proxies
# chown -R <web user>:psacln /var/www/vhosts/domain.com/httpdocs/var

(<web user> = the web hosting (ftp) user name of the Plesk subscription account)
 
Thank you @Peter!

The Proxy directory is setup by symfony i think.

And if i dive that deep, the files are realy only 744 / but the cache is created by the system-user (webusr) as always and php-fpm works without a thing - so why is php-fpm working?

I'll tryout generating the cache with fastcgi at night!
 
Back
Top