Archive

Articles taggués ‘debian’

Compiler nginx sur Debian Lenny

06/05/2009 2 commentaires

Je n’ai pas pu compiler avec la version 0.6, je l’ai donc compilé avec la version svn (0.7.36)

Toutes les manipulations sont à faire en  ‘root’

aptitude install gcc libpcre3-dev zlib1g-dev subversion make
wget http://sysoev.ru/nginx/nginx-0.7.36.tar.gz

On télécharge le module http_h264_streaming à partir du svn

cd ~
svn export http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/nginx nginx_http_h264_streaming
svn export --force http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/mp4split nginx_http_h264_streaming

Je désactive le proxy mail et j’active le module http_flv_module et nginx_http_h264_streaming

./configure
--without-mail_imap_module
--without-mail_smtp_module
--without-mail_pop3_module
--with-http_flv_module
--add-module=$HOME/nginx_http_h264_streaming
--sbin-path=/bin
--conf-path=/etc/nginx/nginx.conf
--with-debug
--pid-path=/var/run/nginx.pid
--http-log-path=/home/www-logs/nginx.log
--error-log-path=/home/www-logs/nginx.error.log
--lock-path=/var/run/nginx.lock
--prefix=/home/nginx

Ajouter ce qui suis dans le fichier /etc/nginx.conf

location ~ \.mp4$ {
  mp4;
}
location ~ \.flv$ {
  flv;
}
Categories: Informatique Tags: , ,

Installer UploadProgress pour Php5

14/04/2009 Aucun commentaire

Pour compiler l’extension UloadProgress on a besoin de phpize.
On le trouve dans le paquet php5-dev :

aptitude install php5-dev

Vérifier la version d’UploadProgress ici :

http://pecl.php.net/package/uploadprogress

Si il y a une version plus récente remplacer 0.9.2 par la version x.x.x

wget http://pecl.php.net/get/uploadprogress-0.9.2.tgz
gunzip uploadprogress-0.9.2.tgz
tar xvf uploadprogress-0.9.2.tar
cd uploadprogress-0.9.2
phpize
./configure
make
make install

Il faut ajouter extension=uploadprogress.so dans le fichier php.ini après toutes les autres extensions (sinon il y a un risque que cela ne marche pas…)

Redémarrer Apache :

/etc/init.d/apache2 restart
Categories: Informatique Tags: , ,