Wednesday, July 31, 2013

Installing flv and mp4 module on cpanel apache 2

Well, If you're going to use flv or mp4 videos on your websites hosted on cpanel server, you will probably need this :

put the following codes into /scripts/after_apache_make_install :
cd /usr/local/src
/usr/local/apache/bin/apxs -i -c mod_flvx.c

tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
cd /mod_h264_streaming-2.2.7
./configure --with-apxs='/usr/local/apache/bin/apxs'
make install
/usr/local/cpanel/bin/apache_conf_distiller --update

put the following codes into /usr/local/apache/conf/includes/pre_virtualhost_global.conf :
LoadModule h264_streaming_module modules/
<IfModule mod_h264_streaming.c>
AddHandler h264-streaming.extensions .mp4

LoadModule flvx_module modules/
<IfModule mod_flvx.c>
AddHandler flv-stream .flv

Now, compile apache2 with EasyApache and it's on !!

No comments:

Post a Comment