Home >Backend Development >PHP Tutorial >macos - Mac cannot clear the php that comes with the machine, and even installing XAMPP cannot cover it

macos - Mac cannot clear the php that comes with the machine, and even installing XAMPP cannot cover it

WBOY
WBOYOriginal
2016-09-09 08:28:031254browse

Which friend has a clever trick? Please tell me! ! !

Reply content:

Which friend has a clever trick? Please tell me! ! !

I have never used MAC. Doesn’t Mac have package management? It should be uninstallable, right? XAMPP's php and XANPP are in the same folder and will not be installed in /bin. You can try adding an alias in bash or ln php under /bin/ to your XAMPP php.

sudo ~/.bash_profile
export PATH="xampp's php path:$PATH"
source ~/.bash_profile

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