Ubuntu – how to install uploadprogress with php 7.0

php7

I'm happily running my LAMP stack with php 7.0 except that I require uploadprogress.so and attempts to install it with PECL result in compile errors.

What do I need to tell Ubuntu 14.04 to use the correct libraries etc to compile uploadprogress.so?

Best Answer

Depends on how you installed PHP 7.0:

  • From ppa:ondrej/php - just do apt-get install php-uploadprogress
  • From sources - you need to build the extension from current git tree:

    git clone git@git.php.net:/pecl/php/uploadprogress.git
    phpize # just make sure the default phpize belongs to PHP 7.0
    ./configure
    make
    sudo make install