How to install Mod_h264 and mod_FLV Streaming for Apache on WHM/cPanel Print

  • 1

cd /usr/local/src
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
cd mod_h264_streaming-2.2.7
./configure
make
make install

Mod_FLV_Streaming

cd /usr/local/src
wget http://people.apache.org/~pquerna/modules/mod_flvx.c
/usr/local/apache/bin/apxs -cia mod_flvx.c

Open WHM control panel, open Apache Configuration, then clic on Include Editor.
In Pre Main Include select All versions and paste those 4 lines.

AddHandler h264-streaming.extensions .mp4
LoadModule h264_streaming_module /usr/local/apache/modules/mod_h264_streaming.so
LoadModule flvx_module /usr/local/apache/modules/mod_flvx.so
AddHandler flv-stream .flv

Now let’s just make sure the modules are correctly working after rebooting Apache.
httpd -M

If you have this two lines in the result, then everything is just fine.
h264_streaming_module (shared)
flvx_module (shared)

 


Was this answer helpful?

« Back