How to configure 360 Monitoring's PHP-FPM plugin on Plesk?

Comments

2 comments

  • Avatar
    Baptiste Brossette

    Hi, I have followed the section "For a single domain on Apache (manually)". Everything works well and the status page show me realtime stats about PHP-FPM service! But 360Monitoring cannot access the page which is public. here is the error i got when i execute this command (found in the 360Monitoring documentation):

    agent360 --test phpfpm

    phpfpm:
    Execution error: HTTP Error 403: Forbidden

     

    How can I resolve this issue? Thank you!

    0
  • Avatar
    Patrick Walther

    I know it is a late reply, but we had the same problem.

    Our solution was to add all of our webservers (public) IPs to the LocationMatch:

     

    <LocationMatch "/status_phpfpm">
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1

        Allow from ::1

        Allow from xxx.xxx.xxx.xxx
        Allow from xxxx:xxxx:x:xxx::xx
        ProxyPass unix:///var/www/vhosts/system/domain.tld/php-fpm.sock|fcgi://127.0.0.1:9000
    </LocationMatch>

     

    Cheers,

    Patrick

    0

Please sign in to leave a comment.

Have more questions? Submit a request