Home  >  Article  >  Backend Development  >  How to delete php on mac

How to delete php on mac

藏色散人
藏色散人Original
2020-11-10 10:04:161792browse

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.

How to delete php on mac

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn