Install Apche in Linux and add the h264 Module

Source: Internet
Author: User

Gentoo:

* Use emerge to install Apache
Emerge Apache

* Compile and install the h264 Module
CD/tmp
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
D/tmp/mod_h264_streaming-2.2.7
./Configure -- With-apxs = 'which apxs2'
Make
Make install

* Modify the Apache configuration file/etc/Apache/httpd. conf.
Loadmodule hsf-_streaming_module/usr/lib/apache2/modules/mod_hsf-_streaming.so
Addhandler h264-streaming.extensions. MP4

* Enable Apache
/Etc/init. d/Apache start

Centos5.5:

* Configure the yum Source

Modify/etc/yum. Repos. d/CentOS-Base.repo

[Base]
Name = centos-$ releasever-Base
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Released updates
[Updates]
Name = centos-$ releasever-Updates
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Packages used/produced in the build but not released
[Addons]
Name = centos-$ releasever-Addons
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = Addons
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/addons/?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that may be useful
[Extras]
Name = centos-$ releasever-extras
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = centos-$ releasever-plus
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

* Install Apache
Yum install httpd

* Install the Apache advanced environment
Yum install httpd-devel

* Compile and install the h264 Module
CD/tmp
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
D/tmp/mod_h264_streaming-2.2.7
./Configure -- With-apxs = 'which apxs2'
Make
Make install

* Modify the Apache configuration file/etc/httpd/CONF/httpd. conf and add
Loadmodule hsf-_streaming_module/usr/lib/httpd/modules/mod_hsf-_streaming.so
Addhandler h264-streaming.extensions. MP4

* Start Apache
Service httpd restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.