Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: mohammeddahwi on September 07, 2019, 10:16:53 PM

Title: Major Error php-fpm not working for user domain account
Post by: mohammeddahwi on September 07, 2019, 10:16:53 PM
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
Title: Re: Major Error php-fpm not working for user domain account
Post by: mohammeddahwi on September 08, 2019, 07:54:58 AM
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
Title: Re: Major Error php-fpm not working for user domain account
Post by: randyproxz on September 08, 2019, 08:21:30 AM
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 :
Code: [Select]
sudo lsof -t -i:8080

It will show PID number, Then kill :
Code: [Select]
sudo kill -9 <PID>

And restart the webserver again to make it website running again..
Title: Re: Major Error php-fpm not working for user domain account
Post by: mohammeddahwi on September 08, 2019, 09:28:11 AM
I want to use apache and varnish. i dont want to use niginx.