php-fpm start problem

Hi,
O have restored vhost backup from different server and now the php-fpm is not starting:

– Unit php7.2-fpm.service has begun starting up.
Apr 15 17:25:46 sites php-fpm7.2[5357]: [15-Apr-2019 17:25:46] ERROR: [pool 148500340028569] unable to set listen address as it’s already used in another pool ‘144584639212752’
Apr 15 17:25:46 sites php-fpm7.2[5357]: [15-Apr-2019 17:25:46] ERROR: failed to post process the configuration
Apr 15 17:25:46 sites php-fpm7.2[5357]: [15-Apr-2019 17:25:46] ERROR: FPM initialization failed
Apr 15 17:25:46 sites systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/n/a
Apr 15 17:25:46 sites systemd[1]: php7.2-fpm.service: Failed with result ‘exit-code’.
Apr 15 17:25:46 sites systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.

Reboot didn’t help.

in apache error log:
[Mon Apr 15 17:38:42.604961 2019] [proxy:error] [pid 9520] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:8004 (*) failed
[Mon Apr 15 17:38:42.605018 2019] [proxy_fcgi:error] [pid 9520] [client 79.184.180.180:55031] AH01079: failed to make connection to backend: localhost

I have manually edited conf files in /etc/php/7.2/fpm/pool.d by changing ports (have been doubled) and one group was not correct. I’m not sure it was a proper way to do it but it worked. What happen when next vhost will be created? Is there a tool to fix it?

SOME LOL sorry
Is there a tool to fix it?
Yes > YOU are that tool. :wink:

I am to. ( but using remi php repo)