Monday 30 May 2011

How to install PECL uploadprogress


On Linux server:
  1. # cd /usr/local/src/
  2. get the latest version http://pecl.php.net/package/uploadprogress
  3. # tar xvfz uploadprogress-VERSION.tgz
  4. # cd uploadprogress-VERSION

  5. # export PHP_PREFIX="/usr/local"
    # $PHP_PREFIX/bin/phpize
    # ./configure
    # make
    # make install
  6. open your php.ini
    e.g.

    # vi /usr/local/lib/php.ini

    add the line you received followed by "uploadprogress.so":

    ; PECL uploadprogress
    extension_dir="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
    extension=uploadprogress.so
  7. # service httpd restart

No comments:

Post a Comment