Skip to content

Instantly share code, notes, and snippets.

@ohartl
Created March 8, 2016 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohartl/ec81824f1a05b3c36e8a to your computer and use it in GitHub Desktop.
Save ohartl/ec81824f1a05b3c36e8a to your computer and use it in GitHub Desktop.
check all php fpm configs
#!/bin/sh
# for php 7.0
[ -x /usr/sbin/php-fpm7.0 ] && /usr/sbin/php-fpm7.0 -t || echo "php 7.0 not found"
# for php 5.*
[ -x /usr/sbin/php5-fpm ] && /usr/sbin/php5-fpm -t || echo "php 5.* not found"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment