If you own a managed VPS, you can simply ask VPS provider for installing ffmpeg. If it is an unmanaged VPS? You have to install on your own. Here are the installation steps that I have done successfully many times on some VPSs.

1. Preparing step:

Edit or create a file /etc/yum.repos.d/dag.repo. Add lines below at the end of the file:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

Add line below at the end of the file /etc/ld.so.conf:

/usr/local/lib

2. Run commands via ssh:

ldconfig -v

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

sudo rpm –install rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum install apt

Install apt

Install apt

yum install rpmforge-release

Install rpmforce

Install rpmforce

yum install ffmpeg

Install ffmpeg

Install ffmpeg

Complete:

Install ffmpeg components

Install ffmpeg components

Complete install ffmpeg

Complete install ffmpeg

3. Install ffmpeg-devel and ffmpeg-php:

yum install ffmpeg-devel

wget http://nchc.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2

tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0

phpize

./configure

make

make install

4. Install mplayer, Mencoder and flvtool2:

yum install mplayer mencoder

yum install flvtool2

5. Edit php.ini:

Find and edit the php.ini file of your domain as below:

nano /home/httpd/yourdomain.extension/php.ini

add lines below at the end of the file php.ini:

[ffmpeg]
extension=ffmpeg.so

ffmpeg.so

ffmpeg.so

6. Check phpinfo:

Create a new file name phpinfo.php that include lines below:

<?php

phpinfo()

?>

and upload that file to the root folder of your domain and run via web browser:

http://yourdomain.extension/phpinfo.php

If you find lines like images below, congratulation! ffmpeg is installed!

ffmpeg info

ffmpeg info

Enjoy!

Bookmark and Share

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: ,

3 Responses to “How to install ffmpeg on unmanaged VPS ?”

  1. duck says:

    After install ffmpeg-php, it said:

    [root@server ffmpeg-php-0.6.0]# make install
    Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

    So we should copy ffmpeg.so at this directory to /usr/lib/php/modules/

  2. admin says:

    A good experience!

  3. arian says:

    As i followed your installation steps so i got a problem with commands line step #3 as you said:

    3. Install ffmpeg-devel and ffmpeg-php:

    yum install ffmpeg-devel

    wget http://nchc.dl.sourceforge.net.....0.6.0.tbz2

    tar -xjf ffmpeg-php-0.6.0.tbz2
    cd ffmpeg-php-0.6.0

    When i type —> phpize the system says -bash: phpize: command not found

    here is the copy of the error

    100%[=======================================>] 275,557 74.2K/s in 3.6s

    11:59:42 (74.2 KB/s) – `ffmpeg-php-0.6.0.tbz2′ saved [275557/275557]

    [root@unitedafghan ~]# tar -xjf ffmpeg-php-0.6.0.tbz2
    [root@unitedafghan ~]# cd ffmpeg-php-0.6.0
    [root@unitedafghan ffmpeg-php-0.6.0]# phpize
    -bash: phpize: command not found
    [root@unitedafghan ffmpeg-php-0.6.0]# ./configure
    -bash: ./configure: No such file or directory

    Would you please help me what to do ?

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>