PHP-FPM Socket File permissions

vsteve01

Registered
Jun 13, 2020
1
0
0
Australia
cPanel Access Level
Root Administrator
Hi,

I'm having issues with the permissions on the socket file when fpm is enabled and suphp is set as php handler.

It created the file as 644, but getting permission denied messages. If I manually change to 664 it works as expected.

Where abouts is this controlled?

I've tried setting umask = 117 in /etc/suphp.conf

I think it's related to the suphp handler setup, but on a machine running 7.2.30 it is working as expected, but it also a newer build.

Cpanel 88.0.5
PHP 7.2.31 (cli) (built: May 25 2020 10:15:56) ( NTS )

Cheers
Steve
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,286
313
Houston
PHP-FPM does not work in conjunction with suPHP it works in place of it. This is noted in the documentation here: MultiPHP Manager for WHM | cPanel & WHM Documentation


The documentation as follows may be useful:

PHP FastCGI Process Manager - PHP-FPM | cPanel & WHM Documentation

You might add SuEXEC to the system if you're not using it already which may resolve the issue.