Re: php path and relink
| From: | Ashley Sheridan | Date: | Tue, 11 May 2010 00:19:24 +0000 |
| Subject: | Re: php path and relink | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305059@lists.php.net to get a copy of this message | ||
On Mon, 2010-05-10 at 21:23 -0300, Augusto Flavio wrote:
> Hi,
>
>
> I have a shell account with limited access. The php cli version installated
> is 4.4.6. But the server have also the php 5.2.6. I checked the php version
> and i got this:
>
>
> $ php -v
> PHP 4.4.9 (cli) (built: Sep 17 2008 11:04:03)
> .....
>
> But i want that the php command be a link to the php5.
>
> How can i "re-link" this php command to the path /usr/local/php5/bin/php ?
>
> I tried include this path in the PATH variable env but didn't worked.
>
>
> Some idea?
>
>
> Thanks
>
> Augusto Morais.
How are you calling the script to be executed by PHP? Can't you add the
path to the version of PHP you want to use there?
Thanks,
Ash
http://www.ashleysheridan.co.uk