/ Private / etc sudo RM -rf PHP- fpm.conf.defaultphp.ini php.ini.default / usr / bin sudo RM -rf PHP PHP- config phpdoc phpize / usr / the include sudo RM -rf PHP // at 10.14. Without this directory on a version of the / usr / lib sudo RM - the RF PHP / usr / sbin sudo RM -rf PHP- FPM / usr / report this content share sudo RM - the RF PHP / usr / report this content share / man / man1 sudo rm -rf php-config.1 php.1 phpize.1 /usr/share/man/man8 sudo rm -rf php-fpm.8
On the left is a directory, the right is the delete command. Delete only php, do not delete apache and other documents referenced php.so
ps: not proposed to delete the built-in php version because some software may depend on the environment php Although you can use self-compiled or brew install a new version of php, but not recommended for novice operation before operating remember to use the system under TM backup..... after so mistakes can restore files.
Reference link: https: //blog.csdn.net/u013549582/article/details/85128047