The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache SuPHP+SafeMode oFF + exec() not work

Discussion in 'EasyApache' started by speckados, Jul 29, 2013.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi.

    I've a problem on server with Apache+SuPHP and php.ini per virtualhost.

    Global PHP has Safe Mode On
    Local PHP has Safe Mode off (se on phpinfo())

    I run a test-->

    Code:
    <?php
         if (exec('/usr/bin/ffmpeg -i 47.mp4 -acodec aac -ab 128kb -vcodec mpeg4 -b 1220kb -mbd 1 -s 320x180 final_video.mov"'))
             { echo "Success"; }
         else { echo "No good"; }
    ?>
    
    But get this message
    Code:
    sh: /usr/local/php/bin/ffmpeg: No such file or directory
    
    Apreciate help
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's important to note that safe_mode itself is seen to be problematic and has actually been deprecated since PHP 5.3:

    PHP: Safe Mode - Manual

    You may want to consider disabling safe_mode globally, as most of it's benefits are already included with suPHP.

    Thank you.
     
Loading...

Share This Page