Hello, I'm hoping someone can help me out here.
I successfully installed PHP 5.4 on my Apple Mac (o/s is Mountain Lion) using [URL unfurl="true"]http://php-osx.liip.ch[/url]'s binary package. Confirmed by running phpinfo.php test file.
The problem is, if I run the Terminal command, php -v, I get PHP version 5.3 displayed.
Now, if I edit my .bash_profile with export PATH=/usr/local/php5/bin:$PATH and run php -v, I get the correct updated version. The issue here, unfortunately, is I get all kinds of warning issues with my Homebrew package manager, after running brew doctor. Since I don't want that, I thought it might be better to use a symbolic link, as follows:
PHP5.4 is installed in /usr/local/php5/bin. If I type the Terminal command, whereis php, I get /usr/bin/php.
Attempting a symbolic link: ln -s /usr/local/php5/bin/php /usr/bin/php, I get the output ln: /usr/bin/php: File exists.
Is there something I'm doing wrong? Is this incorrect?
I'd be eternally grateful for any help!
Thanks in advance,
jd65.
I successfully installed PHP 5.4 on my Apple Mac (o/s is Mountain Lion) using [URL unfurl="true"]http://php-osx.liip.ch[/url]'s binary package. Confirmed by running phpinfo.php test file.
The problem is, if I run the Terminal command, php -v, I get PHP version 5.3 displayed.
Now, if I edit my .bash_profile with export PATH=/usr/local/php5/bin:$PATH and run php -v, I get the correct updated version. The issue here, unfortunately, is I get all kinds of warning issues with my Homebrew package manager, after running brew doctor. Since I don't want that, I thought it might be better to use a symbolic link, as follows:
PHP5.4 is installed in /usr/local/php5/bin. If I type the Terminal command, whereis php, I get /usr/bin/php.
Attempting a symbolic link: ln -s /usr/local/php5/bin/php /usr/bin/php, I get the output ln: /usr/bin/php: File exists.
Is there something I'm doing wrong? Is this incorrect?
I'd be eternally grateful for any help!
Thanks in advance,
jd65.