[TxMt] Re: How to config the internal TM preview browser to run the MAMP PHP engine?
Scott Haneda
talklists at newgeo.com
Thu May 14 23:54:41 UTC 2009
On May 14, 2009, at 3:44 PM, sohdubom wrote:
> but still not there yet ...
>
> 1. I created the .bash_profile following your instructions:
> ....then echo $PATH returned:
> ..../Applications/MAMP/conf:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/
> bin:/usr/X11/bin
> ....as expected, but
> ....which php returned:
> ..../usr/bin/php
>
> 2. and running phpinfo() within TM still points:
> .... PhpMate r11069 running PHP 5.2.6 (cli) (/usr/bin/php)
>
> any ideas?
From the `man which` command
NAME
which -- locate a program file in the user's path
This to me leads me to suspect that /Applications/MAMP/conf is not
where php really is.
Can you try:
$which -a php
This will list all the locations of php it knows about.
Can you also do:
/Applications/MAMP/conf/php -v
and ...
file /Applications/MAMP/conf/php
and...
ls -la /Applications/MAMP/conf
It looks like the MAMP people have decided to store things in some
interesting (IMHO) places. Try editing your path to this:
export PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php5/
bin:$PATH
Put that as the last line in your profile, replacing the other one
previously.
--
Scott * If you contact me off list replace talklists@ with scott@ *
More information about the textmate
mailing list