Skip to content

Instantly share code, notes, and snippets.

@bhowe
Created July 27, 2017 17:59
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 bhowe/e6bf3e9ce1785793c9a1e7936e0fde3d to your computer and use it in GitHub Desktop.
Save bhowe/e6bf3e9ce1785793c9a1e7936e0fde3d to your computer and use it in GitHub Desktop.
UNBUNTU
/etc/php/5.6/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal.
/etc/php/5.6/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup.
/etc/php/5.6/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup.
/etc/php/5.6/fpm/php.ini is for the php5-fpm processor, which is a fastcgi-compatible 'wrapper' for PHP processing (such as to hand off from NGINX to php5-fpm) and runs as a standalone process on the system (unlike the Apache PHP plugin)
CENTOS
#php -i | grep php.ini
MISC
Print out PHP.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment