Results 1 to 12 of 12
  1. #1
    Join Date
    Jan 2001
    Location
    Missouri
    Posts
    299

    Post 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
    # 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
    [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
    # vi /etc/yum.repos.d/dag.repo

    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
    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.

    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
    # /etc/init.d/httpd restart

    # 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 => 0
    Note: Please feel free to share any input you have.
    Last edited by Alex; 09-04-2009 at 08:59 PM. Reason: Requested
    eeeeeeeeeeeeeeeewwwww it's broke

  2. #2
    Join Date
    Aug 2009
    Location
    Bangalore
    Posts
    59
    Nice, informative one

  3. #3
    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

  4. #4
    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
    # 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
    [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
    # vi /etc/yum.repos.d/dag.repo

    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
    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.

    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
    # /etc/init.d/httpd restart

    # 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 => 0
    Note: Please feel free to share any input you have.
    eeeeeeeeeeeeeeeewwwww it's broke

  5. #5
    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.ini
    QuickWeb™ -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

  6. #6
    Join Date
    Jan 2001
    Location
    Missouri
    Posts
    299
    Quote Originally Posted by kabayan View Post
    this is cool.... minor correction

    ;ffmpeg-php extension
    extension=ffmpeg.so

    should be placed inside php.ini instead of ffmpeg.ini


    ; can be whatever you want to call it or don't even include it in there at all

    extensions do not go in the php.ini file. They go just like I put it. /etc/php.d/ffmpeg.ini based on a Centos5.3 Virtualmin install.

    along with your other extensions.
    eeeeeeeeeeeeeeeewwwww it's broke

  7. #7
    Join Date
    Jul 2005
    Posts
    447
    Very helpful and thank you.

  8. #8
    Join Date
    Sep 2007
    Posts
    369

    *

    Its nice howto !
    Thanks,
    Noman
    noman@linuxonsupport.com
    O Canada, we stand on guard for thee

  9. #9
    Wow, its very helpful information. Thanks for sharing it with all.
    SUPPORT FACILITY | 24/7 TECH SUPPORT
    SERVER MANAGEMENT | WEB HOSTING SUPPORT | WP EXPERTS

  10. #10
    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

  11. #11
    Wow thanks a ton!!

  12. #12
    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
    add

    [main]
    enabled=1
    check_obsoletes=1
    Code:
    
    # cd /etc/yum.repos.d/
    We need to add
    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 REPO
    [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 REPO

    [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
    oooooooooooooooooooooooooooo

    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

  1. ffmpeg, ffmpeg-php install on redhat enterprise / plesk control panel
    By druweegee in forum Systems Management Requests
    Replies: 9
    Last Post: 05-19-2009, 04:30 AM
  2. Replies: 1
    Last Post: 10-08-2008, 01:24 PM
  3. How to install ffmpeg on centos/rhel, the simple way
    By jon-f in forum Hosting Security and Technology Tutorials
    Replies: 35
    Last Post: 09-22-2008, 10:57 PM
  4. [HIRING] ffmpeg / ffmpeg-php expert for Centos-cPanel
    By Cirtex in forum Employment / Job Offers
    Replies: 2
    Last Post: 10-09-2006, 01:01 AM
  5. WANTED Experienced! Install Virtualmin Suexec
    By wishiwashere in forum Employment / Job Offers
    Replies: 4
    Last Post: 03-20-2004, 12:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •