Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,277
    Likes Received:
    1,846
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice