PHP 7.0 FPM does not work for domains

Created:

2016-11-16 13:24:21 UTC

Modified:

2017-08-22 00:23:01 UTC

2

Was this article helpful?


Have more questions?

Submit a request

PHP 7.0 FPM does not work for domains

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

PHP 7.0 FPM does not work for domains. The following in error log:

No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/example.com/php-fpm.sock (*) failed
AH01079: failed to make connection to backend: httpd-UDS

Cause

Missing directory for subdomain.

Resolution

  1. Enable debug log for php handler at /opt/plesk/php/7.0/etc/php-fpm.conf :

    # grep log_level /opt/plesk/php/7.0/etc/php-fpm.conf
    log_level = debug
  2. Check error log /var/log/plesk-php70-fpm/error.log to determine the missing folder:

    [21-Jun-2016 18:20:28.261980] ERROR: pid 7237, fpm_conf_process_all_pools(), line 761: [pool testarea.example.com] the prefix '/var/www/vhosts/system/testarea.example.com' does not exist or is not a directory
    [21-Jun-2016 18:10:59] ERROR: failed to post process the configuration
    [21-Jun-2016 18:10:59] ERROR: FPM initialization failed
  3. Create the directory and assign a proper permissions:

    # mkdir /var/www/vhosts/system/testarea.example.com
    # chown root.psaserv /var/www/vhosts/system/testarea.example.com
Have more questions? Submit a request
Please sign in to leave a comment.