php switcher fails to install phpvX-php-fpm and dependencies

Started by n8v8r, February 10, 2018, 12:04:46 PM

Previous topic - Next topic

n8v8r

It seems that the binaries were installed by the switchers script, or at least almost.

One important files absent from /usr/lib/systemd/system is php-fpm.service. It can be eventually traced the installation source directory /tmp/php-build/php-version/sapi/fpm/. Not sure whether the paths inside were supposed to be rewritten by the switcher installer, since they does not match the php installation environment.

Quote[Service]
Type=simple
PIDFile=/usr/local/var/run/php-fpm.pid
ExecStart=/usr/local/sbin/php-fpm --nodaemonize --fpm-config /usr/local/etc/php-fpm.conf

The script is apparently not matured got deployment and likely to feature this bug throughout all PHP versions that are supposed ti be installed by switcher.

It is beyond comprehension how such bugs are slipping through the tests, which supposedly are run for at least 2 weeks.

Instead it feels like being the genuine pig for CWPanel.

N.B. Albeit is possible to install the the latest release of NextCkoud under the circumstance but in order for NextCloud to function properly on nginx  the php-fpm upstream server is required

n8v8r

Thought of giving it a go with switching to PHP5.6.33 but there php-fpm is not even listed as option/module...

n8v8r

After the experience (this is not the first major issue) I am staying far away from the switcher, which is a bag of headache and unreliable. Going forward to remove any/all PHP installed by CWP and depend rather on remi-safe.

With virtual host aliases and php-fpm (which the switcher fails to install properly) it is possible to run the various PHP flavours simultaneously. I found this blog entry rather enchanting and encouraging https://blog.remirepo.net/post/2016/04/16/My-PHP-Workstation