Author Topic: php switcher fails to install phpvX-php-fpm and dependencies  (Read 9973 times)

0 Members and 1 Guest are viewing this topic.


Re: php switcher fails to install phpvX-php-fpm and dependencies
« Reply #1 on: February 12, 2018, 06:43:36 AM »
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
« Last Edit: February 12, 2018, 06:51:05 AM by n8v8r »

Re: php switcher fails to install phpvX-php-fpm and dependencies
« Reply #2 on: February 12, 2018, 10:50:34 AM »
Thought of giving it a go with switching to PHP5.6.33 but there php-fpm is not even listed as option/module...

Re: php switcher fails to install phpvX-php-fpm and dependencies
« Reply #3 on: February 12, 2018, 06:38:51 PM »
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 

« Last Edit: February 17, 2018, 11:34:13 AM by n8v8r »