Portal Home > Knowledgebase > Articles Database > FFMPEG install Centos 5.3 with Virtualmin
FFMPEG install Centos 5.3 with Virtualmin
Posted by Newbie, 08-31-2009, 03:19 AM |
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.
Last edited by Alex; 09-04-2009 at 08:59 PM.
Reason: Requested
|
Posted by rootatmike, 08-31-2009, 02:56 PM |
Nice, informative one
|
Posted by Newbie, 08-31-2009, 05:33 PM |
Still waiting on the site admins to update it. easier to read and fixes a couple errors.
|
Posted by Newbie, 09-01-2009, 04:11 AM |
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.
|
Posted by QuickWeb-Roel, 09-01-2009, 05:46 AM |
this is cool.... minor correction
;ffmpeg-php extension
extension=ffmpeg.so
should be placed inside php.ini instead of ffmpeg.ini
|
Posted by Newbie, 09-01-2009, 07:13 AM |
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.
|
Posted by Mach4-Chris, 09-01-2009, 07:24 AM |
Very helpful and thank you.
|
Posted by nomankhn, 09-01-2009, 07:33 AM |
Its nice howto !
|
Posted by inspiron, 09-01-2009, 08:02 AM |
Wow, its very helpful information. Thanks for sharing it with all.
|
Posted by Newbie, 09-01-2009, 06:24 PM |
BTW if you yum update or virtualmin update and got some errors like this?
You will need to
# vi /etc/yum.repos.d/dag.repo
change
enabled=1 to enabled=0
Then run your updates.
|
Posted by rocoroc, 09-01-2009, 06:50 PM |
Wow thanks a ton!!
|
Posted by Newbie, 09-02-2009, 04:38 PM |
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
add
[main]
enabled=1
check_obsoletes=1
We need to add
priority=N N= 1 to 99 To the bottom line. See examples below
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
Virtualmin REPO
DAG REPO
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.
|
Add to Favourites Print this Article
Also Read