Page 1 of 1

php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Sun Mar 22, 2015 6:10 pm
by jas8522
It appears that the 5.4.38 update has bundled in a php54 optional installation systemd launch script file for php-fpm on CentOS7. After updating to 5.4.38 on a Plesk 12 CentOS 7 box, these are the contents of my /usr/lib/systemd/system/php-fpm.service file:

Code: Select all

[Unit]
Description=The PHP FastCGI Process Manager
After=syslog.target network.target

[Service]
Type=notify
PIDFile=/run/php-fpm/php-fpm.pid
EnvironmentFile=/opt/atomic/atomic-php54/root/etc/sysconfig/atomic-php54-php-fpm
ExecStart=/opt/atomic/atomic-php54/root/usr/sbin/php-fpm --nodaemonize
ExecReload=/bin/kill -USR2 $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target
Yet PHP 5.4 is still the live, updated system install for the server and is not installed in /opt at all. I suspect that systemd launch script shouldn't have been overwritten during this upgrade from the optional install versions of the php-fpm package.

This prevents php-fpm from starting entirely! Could use a rebuild :)

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Sun Mar 22, 2015 7:38 pm
by scott
Ok to be clear here, are we talking about atomic-php54 or php-5.4? They are two different packages.

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Sun Mar 22, 2015 7:55 pm
by jas8522
I have this exact php-5.4 RPM installed, but it seems to install the systemd launch script from the atomic-php54 rpm in that it references binaries and configuration files in /opt and not the default system directories.

I should note that I accidentally mentioned above that I had updated to 5.4.39 when I meant I updated to 5.4.38 (this has now been edited in the original post).

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Mon Mar 23, 2015 7:00 pm
by scott
latest versions are up, let me know if that resolves it for you. Thanks!

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Mon Mar 23, 2015 8:58 pm
by jas8522
No such luck :(
# rpm -qa php-fpm
php-fpm-5.4.39-45.el7.art.x86_64
Note that it's not atomic-php54-php-fpm that's installed.

Contents of /lib/systemd/system/php-fpm.service:

Code: Select all

[Service]
Type=notify
PIDFile=/run/php-fpm/php-fpm.pid
EnvironmentFile=/opt/atomic/atomic-php54/root/etc/sysconfig/atomic-php54-php-fpm
ExecStart=/opt/atomic/atomic-php54/root/usr/sbin/php-fpm --nodaemonize
ExecReload=/bin/kill -USR2 $MAINPID
PrivateTmp=true
# ls -al /opt
total 8
drwxr-xr-x 2 root root 4096 Feb 1 00:49 .
drwxr-xr-x 18 root root 4096 Mar 23 18:29 ..
[root@base system]#
There's nothing installed in /opt, yet the systemd launch script is referencing the atomic-php54 packages for php-fpm.

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Sun Mar 29, 2015 5:06 pm
by scott
SCL trickery is bleeding into the other package. They both come from the same src.rpm.

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Mon Jun 08, 2015 1:58 pm
by jas8522
This is still an issue with 5.4.41-47

Are there plans to fix it? Or am I better off removing the atomicorp rpm as a default PHP install and instead using Plesk's version selector where (presumably) this isn't an issue?

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Mon Jun 15, 2015 7:08 pm
by scott
Just included these in the latest PHP rollup of 5.4, 5.5 and 5.6. Could you grab those updates (this is specific to non-SCL php 5.4, which is included) and confirm the fix, and I'll sign this one off as closed.

Thanks again for the report, and apologies for not getting this out in a point release sooner.

Re: php-fpm 5.4.38 on CentOS 7 systemd launch script issue

Posted: Mon Jun 15, 2015 9:13 pm
by jas8522
Confirmed fixed with php-5.4.42-48.el7.art.x86_64.rpm

Thanks!

-Jordan