Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: n8v8r on February 10, 2018, 12:04:46 PM

Title: php switcher fails to install phpvX-php-fpm and dependencies
Post by: n8v8r on February 10, 2018, 12:04:46 PM
as mentioned here http://forum.centos-webpanel.com/php/php7-17-2-where-is-the-php-fpm-server/ (http://forum.centos-webpanel.com/php/php7-17-2-where-is-the-php-fpm-server/) and here http://forum.centos-webpanel.com/php/php-version-vs-php-fpm-version/ (http://here http://forum.centos-webpanel.com/php/php-version-vs-php-fpm-version/)

also cross referencing http://forum.centos-webpanel.com/suggestions/add-cwpsrv-and-php-fpm-to-services-status-of-root-panel/ (http://forum.centos-webpanel.com/suggestions/add-cwpsrv-and-php-fpm-to-services-status-of-root-panel/)
Title: Re: php switcher fails to install phpvX-php-fpm and dependencies
Post by: n8v8r 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
Title: Re: php switcher fails to install phpvX-php-fpm and dependencies
Post by: n8v8r 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...
Title: Re: php switcher fails to install phpvX-php-fpm and dependencies
Post by: n8v8r 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 
Title: Re: php switcher fails to install phpvX-php-fpm and dependencies
Post by: n8v8r on February 17, 2018, 10:39:54 AM
cross referencing http://forum.centos-webpanel.com/php/configure-php-7-with-nginx-in-cwp/msg15976/#msg15976