SupermanInNY
Verified User
- Joined
- Sep 28, 2004
- Messages
- 419
php cli shows 5.1.6 vs phpinfo 5.2.9+ ssh2-beta installation
[RESOLVED]
Hi All,
I've upgraded a client using customebuild to PHP 5.2.9 cli.
On phpinfo() I see 5.2.9.
But when I use the cmd line:
php -v
I see:
/usr/local/directadmin/custombuild # php -v
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
I've rebuilt again, but to no avail.
I even deleted the symlink
rm /bin/php
but still it is back to the 5.1.6 version.
I'm confused and don't know how to get this resolved.
Any pointers?
-Alon.
thanks to smtalk:
Now,. the next step is installing ssh2-beta:
[RESOLVED]
Hi All,
I've upgraded a client using customebuild to PHP 5.2.9 cli.
On phpinfo() I see 5.2.9.
But when I use the cmd line:
php -v
I see:
/usr/local/directadmin/custombuild # php -v
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
I've rebuilt again, but to no avail.
I even deleted the symlink
rm /bin/php
but still it is back to the 5.1.6 version.
I'm confused and don't know how to get this resolved.
Any pointers?
-Alon.
thanks to smtalk:
rm -f /usr/bin/php
ln -s /usr/local/bin/php /usr/bin/php
ln -s /usr/local/bin/pecl /usr/bin/pecl
Now,. the next step is installing ssh2-beta:
lynx http://pecl.php.net/package/ssh2
extract the ssh2-0.11.0
cd ssh2-0.11.0
/usr/local/bin/phpize build/shtool
./configure --with-php-config=/usr/local/bin/php-config
make
make install
Last edited: