• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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