flexjoly
Verified User
Hi,
Building php (56 and 70) on nginx keeps giving errors while starting. Installing goes fine, but the service won't start normally. At last it did started anyhow.
But then it fails again. So DA start restarting it every minute
I have been searching, reïnstalling, rebuilding for 3 or 4 days now.
It is driving me crazy! Sorry for double posting etc. Please help.
We have a new VPS (2 cores, 4 gb memory) with pre-installed CentOs 7 with directAdmin en custombuild 2.0.
First i updated yum etc. Installed epel-release, postgres (and git). Besides epel, anything is just installed from the defaults on centos7.
Updated DA en Custombuild (with plugin) version: 2.0.0 (rev: 1611). Anything, but php, works fine.
directadmin/errortaskq.log keeps repeating these lines:
PhpPgAdmin works when php does, but when the service failed then we get this error:
NB. I changed the url and ip-addresses
when php-fpm failed systemctl status gives:
Listing of the dir with the sock files:
This dir for php7 seems empty and a minute later it has files
php-fpm stops every minute or so and nginx then gives an 502 error.
Also tried to build without 'pgsql', to be sure that is not the trigger. But that did not help. Also building only php56 did not help.
Please help!
Thanks!
flexJoly
Building php (56 and 70) on nginx keeps giving errors while starting. Installing goes fine, but the service won't start normally. At last it did started anyhow.
But then it fails again. So DA start restarting it every minute
I have been searching, reïnstalling, rebuilding for 3 or 4 days now.
It is driving me crazy! Sorry for double posting etc. Please help.
We have a new VPS (2 cores, 4 gb memory) with pre-installed CentOs 7 with directAdmin en custombuild 2.0.
First i updated yum etc. Installed epel-release, postgres (and git). Besides epel, anything is just installed from the defaults on centos7.
Updated DA en Custombuild (with plugin) version: 2.0.0 (rev: 1611). Anything, but php, works fine.
directadmin/errortaskq.log keeps repeating these lines:
Code:
2016:11:15-22:52:06: Error restarting service php-fpm70 : uid 0 gid 0 : /usr/bin/systemctl restart php-fpm70.service >/dev/null 2>/dev/null : returned 1
2016:11:15-22:52:31: Error starting service php-fpm56 : uid 0 gid 0 : /usr/bin/systemctl start php-fpm56.service >/dev/null 2>/dev/null : returned 1
2016:11:15-22:52:36: service php-fpm56 didn't start, re-starting it
2016:11:15-22:53:02: service php-fpm70 wasn't running, starting it
2016:11:15-22:54:06: Error restarting service php-fpm56 : uid 0 gid 0 : /usr/bin/systemctl restart php-fpm56.service >/dev/null 2>/dev/null : returned 1
2016:11:15-22:54:32: Error starting service php-fpm70 : uid 0 gid 0 : /usr/bin/systemctl start php-fpm70.service >/dev/null 2>/dev/null : returned 1
2016:11:15-22:54:37: service php-fpm70 didn't start, re-starting it
2016:11:15-22:55:02: service php-fpm56 wasn't running, starting it
2016:11:15-22:56:07: Error restarting service php-fpm70 : uid 0 gid 0 : /usr/bin/systemctl restart php-fpm70.service >/dev/null 2>/dev/null : returned 1
2016:11:15-22:56:32: Error starting service php-fpm56 : uid 0 gid 0 : /usr/bin/systemctl start php-fpm56.service >/dev/null 2>/dev/null : returned 1
2016:11:15-22:56:37: service php-fpm56 didn't start, re-starting it
PhpPgAdmin works when php does, but when the service failed then we get this error:
Code:
2016/11/15 22:34:11 [crit] 14443#0: *15 connect() to unix:/usr/local/php56/sockets/webapps.sock failed (2: No such file or directory) while connecting to upstream, client: 12.12.12.12, server: xxx.nl, request: "GET /phppgadmin/redirect.php?subject=server&server=localhost%3A5432%3Aallow HTTP/1.1", upstream: "fastcgi://unix:/usr/local/php56/sockets/webapps.sock:", host: "11.11.111.11", referrer: "http://11.11.111.11/phppgadmin/browser.php"
when php-fpm failed systemctl status gives:
Code:
]# systemctl status php-fpm70
● php-fpm70.service - The PHP FastCGI Process Manager
Loaded: loaded (/etc/systemd/system/php-fpm70.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Tue 2016-11-15 23:16:06 CET; 54s ago
Process: 16272 ExecStart=/usr/local/php70/sbin/php-fpm70 --nodaemonize (code=exited, status=0/SUCCESS)
Main PID: 16272 (code=exited, status=0/SUCCESS)
Nov 15 23:14:36 xxx.nl systemd[1]: Starting The PHP FastCGI Process Manager...
Nov 15 23:16:06 xxx.nl systemd[1]: php-fpm70.service start operation timed out. Terminating.
Nov 15 23:16:06 xxx.nl systemd[1]: Failed to start The PHP FastCGI Process Manager.
Nov 15 23:16:06 xxx.nl systemd[1]: Unit php-fpm70.service entered failed state.
Nov 15 23:16:06 xxx.nl systemd[1]: php-fpm70.service failed.
Listing of the dir with the sock files:
Code:
]# ls -al /usr/local/php56/sockets/
total 0
drwx------ 2 nginx nginx 90 Nov 15 23:19 .
drwxr-xr-x 10 root root 95 Nov 15 01:05 ..
srw-rw---- 1 admin nginx 0 Nov 15 23:19 admin.sock
srw-rw---- 1 git nginx 0 Nov 15 23:19 git.sock
srw-rw---- 1 hdh nginx 0 Nov 15 23:19 hdh.sock
srw-rw---- 1 rhcore nginx 0 Nov 15 23:19 rhcore.sock
srw-rw---- 1 webapps nginx 0 Nov 15 23:19 webapps.sock
This dir for php7 seems empty and a minute later it has files
Code:
# ls -al /usr/local/php70/sockets/
total 0
drwx------ 2 nginx nginx 6 Nov 15 23:20 .
drwxr-xr-x 10 root root 95 Nov 15 01:13 ..
Code:
[root@rhinestone www]# ls -al /usr/local/php70/sockets/
total 0
drwx------ 2 nginx nginx 90 Nov 15 23:21 .
drwxr-xr-x 10 root root 95 Nov 15 01:13 ..
srw-rw---- 1 admin nginx 0 Nov 15 23:21 admin.sock
srw-rw---- 1 git nginx 0 Nov 15 23:21 git.sock
srw-rw---- 1 hdh nginx 0 Nov 15 23:21 hdh.sock
srw-rw---- 1 rhcore nginx 0 Nov 15 23:21 rhcore.sock
srw-rw---- 1 webapps nginx 0 Nov 15 23:21 webapps.sock
php-fpm stops every minute or so and nginx then gives an 502 error.
Also tried to build without 'pgsql', to be sure that is not the trigger. But that did not help. Also building only php56 did not help.
Please help!
Thanks!
flexJoly