Skip to content

Instantly share code, notes, and snippets.

@rizkysyazuli
Last active June 10, 2021 17:13
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 rizkysyazuli/7cce6b0e4c4ea6d0f0f12bf942de1036 to your computer and use it in GitHub Desktop.
Save rizkysyazuli/7cce6b0e4c4ea6d0f0f12bf942de1036 to your computer and use it in GitHub Desktop.
[Shell - PHP] PHP command line utilities #php #shell
# Check loaded config
php --ini
# PHP Info
php -i
# Restart PHP-FPM
systemctl restart php-fpm.service
systemctl restart php5-fpm.service # version specific
/etc/init.d/php-fpm restart
/etc/init.d/php5-fpm restart # version specific
restart php-fpm
restart php5-fpm # version specific
# Check GD/ImagMagick support
php -i | grep 'GD\|ImageMagick'
# PHP-FPM Config
/etc/php-fpm.d/sitename.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment