linux

Install uploadprogress on linux for Drupal 7

I’ve been testing drupal seven on virtual box with Ubuntu and noticed this message in Status report.

Since I'm working on tube-like site I've thought that upload progress bar would be great addition. Actually I like upload progress bar from jquery(it use flash) much more, but why not try it as it's already build in. First googled link on PECL uploadprogress suggest to download uploadprogress sources, manually compile it with phpize and copy to php extensions directory. That's not my way.

Better do this instead.

We need php5-dev package or system will notice we don't have phpize later, so:

  1. $ sudo apt-get install php5-dev

Next, we need pear(if it's not yet installed already).

  1. $ sudo apt-get install php-pear

Now for uploadprogress:

  1. $ sudo pecl install uploadprogress

If you have not Ubuntu but Centos instead, than you should use native package manager instead. As for Centos its's yum, instead of apt-get.

We still must add "extension=uploadprogress.so" into php.ini manually. Usually it's located somewhere at /etc/php5/. You can type "locate php.ini" to find it. With Ubuntu or Debian you can create uploadprogress.ini at /etc/php5/apache2/conf.d and write there "extension=uploadprogress.so". Php will use it then .

Do not forget to restart apache of course.

  1. $ apachectl restart

The most voxing thing is that progress bar doesn't work anyway! Now file field options have new radio button Bar with progress meter in addition to standart Throbber at Progress indicator sub-menu, but as you create new material standart throbber is still shown.

Syndicate content