Mac OSX PHP and XAMPP path issue

后端 未结 4 1366
栀梦
栀梦 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:43

    Finally I Solve the Problem. I set the Following Config in my "~/.bash_profile"

    If u have a bash_profile U need to Edit otherWise create bash_profile. Then Add these lines 1st

    export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH
    export PATH
    

    Above is the Xampp path. Next Add The Composer Path(IF U ADD THE COMPOSER PATH 1st IT WON'T WORK)

    export PATH="~/.composer/vendor/bin:$PATH"
    

    Finally Working Fine for Me.

    which php
    /Applications/XAMPP/xamppfiles/bin/php
    

提交回复
热议问题