Ubuntu – Install PECL uploadprogress PHP extension on Nginx

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:

Advertisements

One thought on “Ubuntu – Install PECL uploadprogress PHP extension on Nginx”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s