Announcement

Collapse
No announcement yet.

Install ffmpeg-php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Install ffmpeg-php

    Hello,

    Im running CloudLinux Server release 6.7 on CentOS with cPanel and I would like to install ffmpeg-php but it tells me that I need php-gd even if it is already installed and working.

    Code:
    root@rossiman [~]# yum install ffmpeg-php
    
    Loaded plugins: fastestmirror, rhnplugin
    
    Setting up Install Process
    
    Loading mirror speeds from cached hostfile
    
    * cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
    
    Resolving Dependencies
    
    --> Running transaction check
    
    ---> Package ffmpeg-php.x86_64 0:0.7.0-2.el6 will be installed
    
    --> Processing Dependency: php-common >= 5.0.4 for package: ffmpeg-php-0.7.0-2.el6.x86_64
    
    --> Processing Dependency: php-gd for package: ffmpeg-php-0.7.0-2.el6.x86_64
    
    --> Finished Dependency Resolution
    
    Error: Package: ffmpeg-php-0.7.0-2.el6.x86_64 (cloudlinux-x86_64-server-6)
    
    Requires: php-gd
    
    Error: Package: ffmpeg-php-0.7.0-2.el6.x86_64 (cloudlinux-x86_64-server-6)
    
    Requires: php-common >= 5.0.4
    
    You could try using --skip-broken to work around the problem
    
    You could try running: rpm -Va --nofiles --nodigest
    Code:
    root@rossiman [~]#php -m
    
    [PHP Modules]
    
    bcmath
    
    bz2
    
    calendar
    
    Core
    
    ctype
    
    curl
    
    date
    
    dom
    
    ereg
    
    exif
    
    fileinfo
    
    filter
    
    ftp
    
    gd
    
    gearman
    
    gettext
    
    hash
    
    iconv
    
    imagick
    
    imap
    
    json
    
    libxml
    
    mbstring
    
    mcrypt
    
    mysql
    
    mysqli
    
    mysqlnd
    
    openssl
    
    pcntl
    
    pcre
    
    PDO
    
    pdo_mysql
    
    pdo_sqlite
    
    Phar
    
    posix
    
    pspell
    
    Reflection
    
    session
    
    SimpleXML
    
    soap
    
    sockets
    
    SPL
    
    sqlite3
    
    standard
    
    tidy
    
    tokenizer
    
    wddx
    
    xml
    
    xmlreader
    
    xmlrpc
    
    xmlwriter
    
    xsl
    
    zip
    
    zlib
    
    [Zend Modules]
    Do I need to install alt-php55-gd? If so, would this give issues with my current GD install? And, on PHP upgrade via cPanel, would any of those installs needs to be upgraded manually?

    Also, as far I can see, I would also need to install alt-php55-common. Please advice.

    Thank you in advance
    Marco

  • #2
    Hi,

    But you are trying to install ffmpeg-php for
    ative PHP but not alternate, if so it requires php-gd for native and also native php-common .

    If you want to provide ffmeg from PHP-Selector then those packages should be installed already, I mean alt-php55-ffmpeg . But also we do not provide ffmpeg package itself due to commercial license, you would need to install it from some external repos then add to cagefs:

    Code:
    cagefsctl --addrpm ffmpeg
    
    cagefsctl --force-update

    Comment


    • #3
      Hi Bogdan, thank you for your reply.

      Ive followed your advice and installed ffmpeg from an external repo and successfully created a video from still images (this is what the projects needs).

      As you correctly say alt-php55-ffmpeg is already installed.
      Updated cagefsctl as per your instructions (could see ffmpeg, ffplay etc. being copied inside the cagefs-skeleton).
      Manually edited /usr/local/lib/php.ini to add ffmpeg.so extension.
      Restarted apache ... but it still doesn show up under php -i, php -m and not even in the extension lists in EasyApache.

      Am I missing something?

      Thanks
      Marco

      Comment


      • #4
        Marco, please understand the difference between native (cpanels) php and alternate php.

        When you run php -i as root, or easyapache you build all for native cpanels php. That set of php versions/modules/settings will work if someone leave
        ative php in PHP-Selector .

        However if user choose any of alternate PHP from our php-selector the alternate php versions/modules/settings are activated, they are absolutely not related to native php or modules from easyapache. No matter what is compiled with easyapache, alt-php works on its own.

        If the goal is to provide ffmpeg support for customers - you just did that with alt-php. From WHM > CloudLinux LVE Manager > Selector menu you may choose a default PHP version to be used for newly created accounts, so they will get alt-php with ffmpeg on their signup stage.

        Comment

        Working...
        X