Major Error php-fpm not working for user domain account

Started by mohammeddahwi, September 07, 2019, 10:16:53 PM

Previous topic - Next topic

mohammeddahwi

Hi,
I enabled webserver apache,niginx,varnish,php-fpm.
I installed php-fpm version 7.2.11
using Webserver doamin conf, i configured the user domain to use php-fpm and ticked the option to rebuild config for this domain.
I restarted apache, php-fpm and tried many other things but the same, the user account shows that it is using php 5.6.37.

I run the command: /bin/systemctl status php-fpm72.service
i get this:
PID file /opt/alt/php-fpm72/usr/var/run/php-fpm.pid not readable (yet?) after reload.

Can any one help

mohammeddahwi

I noticed That php-fpw works for pages requested but for cli it is not working, since php -v shows version 5.6 while phpinfo shows version 7.2.
The cli php is important because i am installing magento 2 and it requires php 7.2 version.
How can this be fixed

randyproxz

Ahh yes, I'm using php-fpm with nginx-varnish too..
And get my website show 502 bad gateway.

I can't restart the webserver it's show error message "make_sock: could not bind to address [::]8080"

Then I've to manually kill all that port :

sudo lsof -t -i:8080


It will show PID number, Then kill :

sudo kill -9 <PID>


And restart the webserver again to make it website running again..

mohammeddahwi

I want to use apache and varnish. i dont want to use niginx.