• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

[SOLVED] PHP-FPM error: nginx 502, No pool defined

sdmx80

Basic Pleskian
Hello!

I have a problem with Plesk 12.5.30 Update #7
  • ‪CentOS Linux 7.1.1503,
  • nginx installed,
  • domain uses latest PHP 5.6.14 (FPM served by Apache)
Sometimes the domain suddenly stops working and the browser diplays a 502 gateway error.

The error log shows the following errors numerous times:
Code:
4198#0: *198922 connect() failed (111: Connection refused) while connecting to upstream

The Terminal shows ($ #sudo service php-fpm status -l)
Code:
Redirecting to /bin/systemctl status  -l php-fpm.service
php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
   Active: failed (Result: exit-code) since Mon 2015-10-19 15:30:47 CEST; 22s ago
  Process: 7219 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
Main PID: 7219 (code=exited, status=78)

Okt 19 15:30:47 server.com php-fpm[7219]: [19-Oct-2015 15:30:47] ERROR: No pool defined. at least one pool section must be specified in config file
Okt 19 15:30:47 server.com php-fpm[7219]: [19-Oct-2015 15:30:47] ERROR: failed to post process the configuration
Okt 19 15:30:47 server.com php-fpm[7219]: [19-Oct-2015 15:30:47] ERROR: FPM initialization failed
Okt 19 15:30:47 server.com systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
Okt 19 15:30:47 server.com systemd[1]: Failed to start The PHP FastCGI Process Manager.
Okt 19 15:30:47 server.com systemd[1]: Unit php-fpm.service entered failed state.

Please help!

Greetings,
sdmx
 
Hello,

I solved it by reinstalling PHP FPM using the command line commands
Code:
## sudo yum remove php-fpm
## sudo yum install php-fpm
## sudo reboot

Hope this helps if you encounter a similar error.

Best regards,
sdmx
 
Hi,

I've tried your solution, but it didn't really help me. But you made a good point, it pushed me to the Goal.
I started the plesk autoinstaller and removed all php versions, except for the php version provided by OS, which is listed on the bottom. If you try to remove this one, it will tell you, that you have to remove the Plesk Panel.
For now, i have a running Plesk Panel again. I will try to install php 5.4 or 5.5 later.
 
Back
Top