This should keep from screwing anything up you have from the CentOS 5 possibly other OS's. You can skip down if not installing from scratch to already installed.
*** START HERE IF INSTALLING FROM SCRATCH ***
Freshly installed OS
remove cd
reboot
Disable SELINUX
no firewall
>login root
# shutdown -r now
---------install virtualmin-------------
>Login root
cd /tmp
# wget http://software.virtualmin.com/gpl/scripts/install.sh
# /bin/sh install.sh
-----------------------------------------
https://x.x.x.x:10000
>login as root
follow steps
update via virtualmin cp
-----------------------------------------
*** Start here if your ALREADY INSTALLED ***
SSH into server or login locally as root
# yum install yum-protectbase
# vi /etc/yum/pluginconf.d/protectbase.conf
add if not there already there
# cd /etc/yum.repos.d/
vi all repos
# vi CentOS-Base.repo
# vi CentOS-Media.repo
# vi virtualmin.repo
:::note::: (to each line below each gpgkey=*) for all repos to be protected from 3rd party repos (protect=0 will not protect each repo) (protect=1 can update other protect=1 repos)
add
protect=1
I would protect all Centos and virtualmin repos and any others you might have.But to each their own.
example:
vi CentOS-Base.repo
# vi /etc/yum.repos.d/dag.repo
add
DO NOT PROTECT=1 on dag.repo or your asking for trouble as it will overwrite other repos if newer.
# cd /tmp
# wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt
# yum install ffmpeg ffmpeg-devel re2c php-devel php-xml
# ffmpeg
should see this.
*** Time to get FFMPEG-PHP going ***
# wget http://downloads.sourceforge.net/pro...php-0.6.0.tbz2
# tar -xjf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0/
# phpize
# ./configure
# make
# make install
some of the output
Installing shared extensions: /usr/lib/php/modules/
# cd ..
# rm -rf ffmpeg*
# rm RPM-GPG-KEY.dag.txt
# vi /etc/php.d/ffmpeg.ini
add
# /etc/init.d/httpd restart
# php -i | grep ffmpeg
You should see this..
Note: Please feel free to share any input you have.
*** START HERE IF INSTALLING FROM SCRATCH ***
Freshly installed OS
remove cd
reboot
Disable SELINUX
no firewall
>login root
# shutdown -r now
---------install virtualmin-------------
>Login root
cd /tmp
# wget http://software.virtualmin.com/gpl/scripts/install.sh
# /bin/sh install.sh
-----------------------------------------
https://x.x.x.x:10000
>login as root
follow steps
update via virtualmin cp
-----------------------------------------
*** Start here if your ALREADY INSTALLED ***
SSH into server or login locally as root
# yum install yum-protectbase
# vi /etc/yum/pluginconf.d/protectbase.conf
add if not there already there
Quote:
[main] enabled = 1 |
vi all repos
# vi CentOS-Base.repo
# vi CentOS-Media.repo
# vi virtualmin.repo
:::note::: (to each line below each gpgkey=*) for all repos to be protected from 3rd party repos (protect=0 will not protect each repo) (protect=1 can update other protect=1 repos)
add
protect=1
I would protect all Centos and virtualmin repos and any others you might have.But to each their own.
example:
vi CentOS-Base.repo
Quote:
[base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos enabled=1 protect=1 #released updates [update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos enabled=1 protect=1 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos enabled=1 ::Note this could also be a 0 if I didn't want to use anything in it. protect=0 ::Note this could be a 1 if I didn't want anything overwritten from other protect=0 repos |
add
Quote:
[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt enabled=1 protect=0 |
# cd /tmp
# wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt
# yum install ffmpeg ffmpeg-devel re2c php-devel php-xml
# ffmpeg
should see this.
Quote:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --enable-libamr-nb --enable-libamr-wb --enable-libdirac --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-x11grab libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 0 / 52.20. 0 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jul 24 2009 01:48:17, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44) At least one output file must be specified |
*** Time to get FFMPEG-PHP going ***
# wget http://downloads.sourceforge.net/pro...php-0.6.0.tbz2
# tar -xjf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0/
# phpize
# ./configure
# make
# make install
some of the output
Installing shared extensions: /usr/lib/php/modules/
# cd ..
# rm -rf ffmpeg*
# rm RPM-GPG-KEY.dag.txt
# vi /etc/php.d/ffmpeg.ini
add
Quote:
;ffmpeg-php extension extension=ffmpeg.so |
# php -i | grep ffmpeg
You should see this..
Quote:
/etc/php.d/ffmpeg.ini, ffmpeg ffmpeg-php version => 0.6.0-svn ffmpeg-php built on => Aug 31 2009 01:04:04 ffmpeg-php gd support => enabled ffmpeg libavcodec version => Lavc52.20.0 ffmpeg libavformat version => Lavf52.31.0 ffmpeg swscaler version => SwS0.7.1 ffmpeg.allow_persistent => 0 => 0 ffmpeg.show_warnings => 0 => 0 |
__________________
eeeeeeeeeeeeeeeewwwww it's broke
0 comments:
Post a Comment