user.sock file not created

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hi at All,

I've the same problem as this old thread: http://forum.directadmin.com/showthread.php?t=46692

the server are new (5 days old) with centos 7, apache and two versions of php (5.5 as primary and 5.4 as secondary) both in FPM mode.

if I restart php-fpm55 and php-fpm54 services the files "user.sock" are created and everything works.

The error in apache log are:

[Sat Oct 18 11:22:43.360651 2014] [proxy:error] [pid 29574:tid 140020847822592] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /usr/local/php55/sockets/user.sock (*) failed
[Sat Oct 18 11:22:43.360712 2014] [proxy_fcgi:error] [pid 29574:tid 140020847822592] [client 188.218.159.163:49448] AH01079: failed to make connection to backend: httpd-UDS

can i fix this problem? I saw that the bug has been fixed (http://www.directadmin.com/features.php?id=1486) but something still does not work for me

Thank You and sorry for my bad English

Vito
 
Last edited:
It should be, but is probably an issue specific to CentOS 7 (likely the php-fpm scripts on CentOS 7 don't like "graceful").

Tested on CentOS 6, which worked
Code:
[root@es6-64 directadmin]# ps ax  | grep php 2516 ?        Ss     0:00 php-fpm: master process (/usr/local/php53/etc/php-fpm.conf)
 2518 ?        Ss     0:00 php-fpm: master process (/usr/local/php55/etc/php-fpm.conf)
27730 pts/0    S+     0:00 grep php
[root@es6-64 directadmin]# echo "action=httpd&value=restart" >> data/task.queue
[root@es6-64 directadmin]# ./dataskq
[root@es6-64 directadmin]# ps ax  | grep php
27788 ?        Ss     0:00 php-fpm: master process (/usr/local/php53/etc/php-fpm.conf)
27790 ?        Ss     0:00 php-fpm: master process (/usr/local/php55/etc/php-fpm.conf)
27862 pts/0    S+     0:00 grep php
[root@es6-64 directadmin]#
Tested on CentOS 7, and confirmed that is does not work:
Code:
[root@es7-64 directadmin]# ps ax |grep php 4288 pts/0    S+     0:00 grep --color=auto php
19527 ?        Ss     3:59 php-fpm: master process (/usr/local/php55/etc/php-fpm.conf)
19533 ?        Ss     3:53 php-fpm: master process (/usr/local/php54/etc/php-fpm.conf)
[root@es7-64 directadmin]# echo "action=httpd&value=restart" >> data/task.queue
[root@es7-64 directadmin]# ./dataskq
[root@es7-64 directadmin]# ps ax |grep php
 4375 pts/0    S+     0:00 grep --color=auto php
19527 ?        Ss     3:59 php-fpm: master process (/usr/local/php55/etc/php-fpm.conf)
19533 ?        Ss     3:53 php-fpm: master process (/usr/local/php54/etc/php-fpm.conf)
[root@es7-64 directadmin]# /usr/bin/systemctl graceful php-fpm55.service
Unknown operation 'graceful'.
[root@es7-64 directadmin]#

In any case, I've adjusted the "graceful" to do a "reload" for "systemd" systems (aka, just CentOS 7 right now)
https://www.directadmin.com/features.php?id=1673

Pre-release binaires should be available shortly.

John
 
Back
Top