Tag Archives: php.ini

sh: /mencoder: No such file or directory

This is the problem caused due to PHP safe_mode restrictions to execute linux commands.

If safe mode is on we can not run linux commands by exec() PHP function.

Try safe mode Off when you want to execute linux tools with PHP….

Disable dangerous function from executing to exec().. that will cause application non functional 😦

# php mencoder.php

sh: /mencoder: No such file or directory

# cat mencoder.php
<?php exec("mencoder -ovc help"); ?>
# mencoder -ovc help

PHP Safe Mode

PHP Safe Mode

Leave a comment

Posted by on December 30, 2009 in CentOS, Fedora, Linux, Tips, Tricks


Tags: , , , , , , ,