[bug] Enabling php-fpm56 in systemd on CentOS 7 for 5.6 as fastcgi

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,358
Location
www.poralix.com
Hello,

We have:

PHP (default): 5.4 as php-fpm
PHP (additional): 5.6 as fastcgi

the command ./build update_versions ended with updating of both PHP 5.4 and 5.6 and a try to enable php-fpm56 in systemd on CentOS 7 box:

Code:
Enabling php-fpm56 in systemd...
Job for php-fpm56.service failed. See 'systemctl status php-fpm56.service' and 'journalctl -xn' for details.
PHP 5.6.4 Installed.

probably it's related to the fact, that previously we had 5.6 as php-fpm installed, and now there are some files left:

/etc/systemd/system/php-fpm56.service
/etc/systemd/system/multi-user.target.wants/php-fpm56.service
/usr/local/directadmin/data/users/admin/php/php-fpm56.conf
/usr/local/php56/php/man/man8/php-fpm56.8
/usr/local/php56/sbin/php-fpm56
/var/log/php-fpm56.log

And several months have passed since we switched 5.6 from php-fpm to fastcgi.

Please check it and fix it.
 
Thank you for the report. The bug affected systems where 2 different modes of PHP is set, and only when "./build update_versions" is used (not "./build php"). It's now fixed in rev. 1218.
 
CB 2.0 does not update PHP 5.6. Is this related? It says Updating PHP 5.6 and then shows the menu:
Code:
[root@wenb custombuild]# ./build update_versions
Updating PHP 5.6
 +-----------------------------------------------------------+
 |                                                           |
 |            DirectAdmin WebServices Installer              |
 |     Written by Martynas Bendorius and DirectAdmin         |
 |               Version: 2.0.0-RC7 (rev: 1219)              |
 |                                                           |
 +-----------------------------------------------------------+
 |  To build everything run:                                 |
 |     ./build all                                           |
 |                                                           |
 | NOTE: Command all will compile everything as it is set    |
 |      in the options.conf file, please take a look at      |
 |      "./build options"!                                   |
 +-----------------------------------------------------------+
 | Install/update server components:                         |
 |    ./build apache                                         |
 |    ./build autoconf                                       |

Relevant part of the options.conf:
Code:
php1_release=5.6
php2_release=5.5
php1_mode=php-fpm
php2_mode=suphp
php_ini=no

And on another system:
Code:
php1_release=5.3
php2_release=5.6
php1_mode=php-fpm
php2_mode=suphp
php_ini=no
 
There seems to be a typo near line 17625 of /usr/local/directadmin/custombuild/build. HAVE_SUPHP_CGI56 and HAVE_FPM_CGI56 should be HAVE_SUPHP56_CGI and HAVE_FPM56_CGI respectively.
 
Back
Top