Path to PHP 5 binary?


#1

Hi,

I would like to run some php scripts (php5 only) from the command line, but I only can find the php 4 binary. Anyone know where to point my scripts to use the php 5 binary? If there is none, how would I go about getting the binary installed?

Thanks!


#2

Have you tried /usr/local/php5?

[code][karnov]$ whereis php
php: /etc/php /usr/local/bin/php /usr/local/lib/php

[karnov]$ whereis php5
php5: /etc/php5 /usr/local/php5[/code]


[color=#000000]DreamHost Promo Code[/color]: [color=#CC0000]Save $50[/color] with the promo code DREAMTEAM


#3

I think you mean /usr/local/php5/bin/php

$ /usr/local/php5/bin/php -v PHP 5.0.4 (cgi-fcgi) (built: Oct 18 2005 16:14:06)

If you want useful replies, ask smart questions.