Path to PHP 5 binary?

Path to PHP 5 binary?

Posted by: timmerk15
Posted on: 2005-12-07 10:49:00

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!

Re: Path to PHP 5 binary?

Posted by: doeleman
Posted on: 2005-12-07 11:18:00

Have you tried /usr/local/php5?

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

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


Re: Path to PHP 5 binary?

Posted by: kchrist
Posted on: 2005-12-07 12:04:00

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)

Tags: php scriptsphp 5php 4binaryphp5path