Toggle php extensions from command line
- Search for all .ini files in php directory
- Find line where specified extension loaded
- Add or remove
;
at the beginning of the line - Try restart
fpm
,apache
andbrew php
- Linux or MacOs
- Brew to restart php on mac os
service
command to restart php-fpm or apache on linux
composer create-project xtrime-ru/php-extensions-toggle && rm -rf php-extensions-toggle/
rm /usr/local/bin/php-extension
php-extensions xdebug on
php-extensions xdebug off
php-extensions apcu on