Re: php path and relink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 11.05.2010 02:23, schrieb Augusto Flavio:
> 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.
>
>   

If it's only for your shell:
Edit .bashrc and paste this:
alias php="/usr/local/php5/bin/php"

Save and re-login.


-- Piero

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux