Filed, image filed et drupal 7 – ajout uploadprogress

2 choix: PECL ou APC (fait chez Gandi).

PECL upload progress library

PECL upload progress library http://pecl.php.net/package/uploadprogress

 

  1. installet php pear et php5-dev: sudo apt-get install php5-dev php-pear make
  2. sudo pecl install uploadprogress
  3. sudo vi /etc/php5/apache2/php.ini
    extension=uploadprogress.so
    restart apache   sudo /etc/init.d/apache2/ restart

Installer nano : sudo apt-get install nano
sudo nano /etc/php5/apache2/conf.d/uploadprogress.ini

note natty :

  • lors install php5-dev php-pear, il affiche :

update-alternatives: utilisation de « /usr/bin/php-config5 » pour fournir « /usr/bin/php-config » (php-config) en mode automatique.
update-alternatives: utilisation de « /usr/bin/phpize5 » pour fournir « /usr/bin/phpize » (phpize) en mode automatique.

  • Lors  pecl install uploadprogress, il affiche :

configuration option "php_ini" is not set to php.ini location
You should add "extension=uploadprogress.so" to php.ini

APC (conf gandi)

S'active via le php.ini, en ajoutant la ligne: apc.rfc1867 = 1
Dans l'install drupal, mettre en sites/all/libraries/plupload (à dl à http://www.plupload.com/download) - effacer sites/all/libraries/plupload/examples (message de sécurité).
Note: un seul transfert à la fois est possible.

sudo apt-get install php-apc

http://us2.php.net/apc
Doc en fr à http://us2.php.net/manual/fr/book.apc.php