Results 1 to 12 of 12
-
08-31-2009, 03:19 AM #1Web Hosting Guru
- Join Date
- Jan 2001
- Location
- Missouri
- Posts
- 299
FFMPEG install Centos 5.3 with Virtualmin
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
[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
[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
[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.
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
;ffmpeg-php extension
extension=ffmpeg.so
# php -i | grep ffmpeg
You should see this..
/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 => 0Last edited by Alex; 09-04-2009 at 08:59 PM. Reason: Requested
eeeeeeeeeeeeeeeewwwww it's broke
-
08-31-2009, 02:56 PM #2Junior Guru Wannabe
- Join Date
- Aug 2009
- Location
- Bangalore
- Posts
- 59
Nice, informative one
-
08-31-2009, 05:33 PM #3Web Hosting Guru
- Join Date
- Jan 2001
- Location
- Missouri
- Posts
- 299
Still waiting on the site admins to update it. easier to read and fixes a couple errors.
eeeeeeeeeeeeeeeewwwww it's broke
-
09-01-2009, 04:11 AM #4Web Hosting Guru
- Join Date
- Jan 2001
- Location
- Missouri
- Posts
- 299
I'll update it myself
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
[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
[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
[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.
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
;ffmpeg-php extension
extension=ffmpeg.so
# php -i | grep ffmpeg
You should see this..
/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 => 0eeeeeeeeeeeeeeeewwwww it's broke
-
09-01-2009, 05:46 AM #5VPS Like a Boss!
- Join Date
- Jul 2009
- Location
- New Zealand
- Posts
- 2,331
this is cool.... minor correction
;ffmpeg-php extension
extension=ffmpeg.so
should be placed inside php.ini instead of ffmpeg.iniQuickWeb™ -We Host Servers Like a Boss!
New Zealand - USA - UK - Germany Virtual Servers
Worldwide hosting provider with proven 24x7 and 25-Minute Support!
www.quickweb.co.nz
-
09-01-2009, 07:13 AM #6Web Hosting Guru
- Join Date
- Jan 2001
- Location
- Missouri
- Posts
- 299
eeeeeeeeeeeeeeeewwwww it's broke
-
09-01-2009, 07:24 AM #7Aspiring Evangelist
- Join Date
- Jul 2005
- Posts
- 447
Very helpful and thank you.
-
09-01-2009, 07:33 AM #8Aspiring Evangelist
- Join Date
- Sep 2007
- Posts
- 369
-
09-01-2009, 08:02 AM #9Support Facility
- Join Date
- Jun 2009
- Posts
- 2,335
Wow, its very helpful information. Thanks for sharing it with all.
-
09-01-2009, 06:24 PM #10Web Hosting Guru
- Join Date
- Jan 2001
- Location
- Missouri
- Posts
- 299
BTW if you yum update or virtualmin update and got some errors like this?
virtualmin-base-1.0-61.rh.noarch from installed has depsolving problems
--> Missing Dependency: /usr/bin/freshclam is needed by package virtualmin-bas e-1.0-61.rh.noarch (installed)
clamd-0.95.2-4.el5.rf.i386 from dag has depsolving problems
--> Missing Dependency: clamav = 0.95.2-4.el5.rf is needed by package clamd-0. 95.2-4.el5.rf.i386 (dag)
clamav-server-sysv-0.95.2-1.vm.el5.i386 from installed has depsolving problems
--> Missing Dependency: clamav-server = 0.95.2-1.vm.el5 is needed by package c lamav-server-sysv-0.95.2-1.vm.el5.i386 (installed)
Error: Missing Dependency: /usr/bin/freshclam is needed by package virtualmin-ba se-1.0-61.rh.noarch (installed)
Error: Missing Dependency: clamav-server = 0.95.2-1.vm.el5 is needed by package clamav-server-sysv-0.95.2-1.vm.el5.i386 (installed)
Error: Missing Dependency: clamav = 0.95.2-4.el5.rf is needed by package clamd-0 .95.2-4.el5.rf.i386 (dag)
You will need to
# vi /etc/yum.repos.d/dag.repo
change
enabled=1 to enabled=0
Then run your updates.eeeeeeeeeeeeeeeewwwww it's broke
-
09-01-2009, 06:50 PM #11Newbie
- Join Date
- Sep 2009
- Posts
- 10
Wow thanks a ton!!
-
09-02-2009, 04:38 PM #12Web Hosting Guru
- Join Date
- Jan 2001
- Location
- Missouri
- Posts
- 299
Finally a work around to dag depsolving
This corrects having to change any additional repos (dags) to enabled=0 when you yum update to prevent the depsolving. You can still install and update using dag now. I am keeping yum protectbase also.
ooooooo YUM PRIORITIES ooooooo
Code:# yum install yum-priorities
Code:# vi /etc/yum/pluginconf.d/priorities.conf
[main]
enabled=1
check_obsoletes=1
Code:# cd /etc/yum.repos.d/
priority=N N= 1 to 99 To the bottom line. See examples below
Code:# vi CentOS-Base.repo
Code:# vi CentOS-Media.repo
Code:# vi virtualmin.repo
Code:# vi dag.repo
vi any other repos you have and add those as well.
Keep Centos as the highest then virtualmin everything else should be below those 2 in priorities. Of course that depends on how your running things. You could be on bleeding edge repos so adjust to your flavor.
EXAMPLE
CENTOS REPO
[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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
enabled=1
protect=1
priority=1
#released updates
[updates]
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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
enabled=1
protect=1
priority=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
enabled=1
protect=1
priority=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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
enabled=1
protect=1
priority=1
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
protect=1
priority=2
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
protect=1
priority=2
[virtualmin]
name=Red Hat Enterprise $releasever - $basearch - Virtualmin
baseurl=http://software.virtualmin.com/gpl/rhel/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1
protect=1
priority=3
[virtualmin-universal]
name=Virtualmin Distribution Neutral
baseurl=http://software.virtualmin.com/gpl/universal/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1
protect=1
priority=3
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dag
enabled=1
protect=0
priority=4
I plan to update this whole how to and correct some of the issues with it. Along with hardening, additional mods and stuff.Last edited by Newbie; 09-02-2009 at 04:46 PM.
eeeeeeeeeeeeeeeewwwww it's broke
Similar Threads
-
ffmpeg, ffmpeg-php install on redhat enterprise / plesk control panel
By druweegee in forum Systems Management RequestsReplies: 9Last Post: 05-19-2009, 04:30 AM -
[How install ? ]FFmpeg and strem program in CENTOS Enterprise 5.2 i686
By ahbahouse in forum VPS HostingReplies: 1Last Post: 10-08-2008, 01:24 PM -
How to install ffmpeg on centos/rhel, the simple way
By jon-f in forum Hosting Security and Technology TutorialsReplies: 35Last Post: 09-22-2008, 10:57 PM -
[HIRING] ffmpeg / ffmpeg-php expert for Centos-cPanel
By Cirtex in forum Employment / Job OffersReplies: 2Last Post: 10-09-2006, 01:01 AM -
WANTED Experienced! Install Virtualmin Suexec
By wishiwashere in forum Employment / Job OffersReplies: 4Last Post: 03-20-2004, 12:23 PM