Mac OSX PHP and XAMPP path issue

后端 未结 4 1347
栀梦
栀梦 2020-12-02 20:59

I have installed XAMPP on Mac OSX running Yosemite I have created the .bash_profile file like this:

export XAMPP_HOME=/Applications/XAMPP/xamppfiles
export P         


        
4条回答
  •  [愿得一人]
    2020-12-02 21:47

    To use the XAMPP PHP and other binaries found in /Applications/XAMPP/bin/ by default this is the correct entry for ~/.bash_profile

    export XAMPP_HOME=/Applications/XAMPP
    export PATH=${XAMPP_HOME}/bin:${PATH}
    export PATH
    

    Load the changes with this (won't be needed next time you open a shell session):

    source ~/.bash_profile
    

    Confirm:

    $ which php
    /Applications/XAMPP/bin/php
    

提交回复
热议问题