close

April 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

Useful shell commands to check if PHP-FPM is running correctly

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3413 Reply
    Theresa
    Guest

    I found a few cool shell commands that help to test and diagnose issues with PHP-FPM since you can’t easily test it like you can for Nginx

    https://stackoverflow.com/questions/14915147/php-fpm-check-if-running

    An easy one is

    ps aux | grep php-fpm

    To see if the Linux process is running for php-fpm service

    #3541 Reply
    Kimberly
    Guest

    basic one is always:

    sudo service php8.1-fpm status

    #3571 Reply
    Brenda
    Guest

    You can also use netstat and search the port like the OP link, because SlickStack doesn’t use Unix sockets to keep things faster over TCP:

    netstat -an | grep :9000

    This will show you activity since SS uses this rule:

    fastcgi_pass 127.0.0.1:9000;

    Reference config:
    https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/sites/production.txt

    #4024 Reply
    Walter
    Guest

    maybe this can be integrated with the ss commands?

    #4275 Reply
    Kayla
    Guest

    how can I downgrade php version from 8.1 to 7.4?

    #4279 Reply
    Kayla
    Guest

    how can I downgrade php version from 8.1 to 7.4?

    No thread-jacking please, go here:

    how can I downgrade PHP version from 8.1 to 7.4?

    and please provide a lot more context to your question.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Useful shell commands to check if PHP-FPM is running correctly

Thanks to our generous sponsors for their support!