How to delete php on mac: first stop the apache service through "sudo apachectl stop"; then delete the php directory "/usr/php /usr/bin/php /usr/bin/php-config /usr/bin /phpize." That's it.
Recommended: "PHP Video Tutorial"
Mac OS X Lion deletes the built-in apache php
To stop the apache service: sudo apachectl stop
Delete the following apache directory:
/etc/apache2
/usr/include/apahce2
/usr/libexec/apache2
Delete the php directory, (a bit too much):
/usr/php
/usr/bin/php
/usr/bin/php-config
/usr/bin/phpize
/usr/include/php
/usr/lib/php
/usr/share/man/man*/php*
/usr/share/man
Under this directory, there are man1-man8 and so on on my computer. Directory, mine only has three files starting with php under man1. I suggest you check the others if you are worried.
At this point, apache and php have been deleted. However, I still feel that some unclean files should be deleted, such as some dependent packages of php and other files.
The above is the detailed content of How to delete php on mac. For more information, please follow other related articles on the PHP Chinese website!