Quantcast
Channel: Eureka! » PHP
Viewing all articles
Browse latest Browse all 16

Ubuntu – Install PECL uploadprogress PHP extension on Nginx

$
0
0

In Drupal, we can use a progress bar when uploading an image or file. But that needs a PHP PECL extension called uploadprogress. The following steps work for Ubuntu Precise (Ubuntu 12.04.1 LTS).

1. Install the php5-dev package.

  • apt-get install php5-dev

 

2. Install the build-essential package.

  • apt-get install build-essential

 

3. Install the PECL uploadprogress.

  • pecl install uploadprogress

 

4. Create the uploadprogress config file.
/etc/php5/conf.d/uploadprogress.ini

extension=uploadprogress.so

 

5. Restart PHP-FPM and Nginx.

  • /etc/init.d/nginx restart
  • /etc/init.d/php5-fpm restart

 

6. Check it out.
php-uploadprogress
 

Done =)

Reference:


Filed under: Linux, PHP Tagged: Drupal, Drupal Development, Nginx, PECL, PHP, PHP-FPM, Ubuntu

Viewing all articles
Browse latest Browse all 16

Trending Articles