PHP version reported incorrectly

LincLinc OwnerDetroit Icrontian
edited February 2008 in Internet & Media
I'm trying to install a PECL library (uploadprogress) that required PHP 5.2

I'm running 5.2.5, so that should work. (phpinfo confirms this)

Running "pecl install uploadprogress" gives an error:

"pecl/uploadprogress requires PHP (version >= 5.2.0), installed version is 5.1.6"

Help? :-/

//edit: Even better, 5.1.6 was never even installed on the server. We started with a clean CentOS install and PHP 5.2.1

//edit2: Better still, php-config --version returns "5.2.1", which isn't correct either.

Comments

  • LincLinc Owner Detroit Icrontian
    edited February 2008
    After 3 hours of Google-ing and tinkering, I found that the "pecl" command was pointing at the wrong install of PECL. Using the full path to call it worked.

    /srv/php5/php525/bin/pecl install uploadprogress

    And, actually, that didn't even work. I had to use the full path to uploadprogress and/or config-set the preferred_state to beta since there is no stable release of it. :rolleyes:

    **** Linux, **** PHP, **** this day. I'm out. :p
Sign In or Register to comment.