• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question PHP7 and php7.0-fpm.sock. How to make it work?

Gabor H

Basic Pleskian
Hi,

I've a dedi server from a large server seller/operator in EU. Installed their Debian 8.5+Plesk 12.5 image.
I'd like to use Nginx+PHP7-FPM on several domains.

What I've set for the domain:
-PHP 7.0.10
-run PHP as FPM application via Nginx
-additional nginx directives (just a part of it regarding FPM)


# PHP handling with FPM
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/www/vhosts/system/mydomain.com/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}


This above code is from a forum, not sure whether it's good or not.
If I search for *fpm.sock on a server, I get this result:


/var/www/vhosts/system/mydomain.com/php-fpm.sock
/run/php5-fpm.sock

If I check the content of the ..../php-fpm.sock ,then it's an empty file.

Anyway, as I read on other sources, shouldn't it be php7.0-fpm.sock file name??

If I check the info.php on a given domain, I get this results:

Server API: FPM/FastCGI
Loaded Configuration File: /opt/plesk/php/7.0/etc/php.ini


So, is my configuration is good for PHP7-FPM, or anything needed to be amended?

Regards,
G
(I'm not a pro sysadmin)
 
In a default Plesk installation there is no need to add additional PHP handling directives to Nginx configuration files/templates. If you omit any additional statements you should be set with PHP 7 FPM running. Adding additional handlers will probably break it.
 
Ok, I removed the additional nginx directives.

So no need to look for php7.0-fpm.sock?


Is the empty php-fpm.sock file all right??
 
Back
Top