Check whether safe_mode is enabled for php. The restriction of using functions of php can also be enabled - disable_functions .
It may also be that the user from whom the web server is running does not have a shell. Try this: echo exec("whoami");
After receiving the answer, check if there is a valid shell in the / etc / passwd file: echo exec("cat /etc/passwd");
.
Alternatively, you can also output the result of the command execution to the file: exec("/usr/bin/some_command > /full/path/to/root/dir/log.txt");
But most likely the lame
command is missing in the binary directories search directories for the user from which it is launched. From the console on the server, make which lame
, then correct your command by specifying the full path to the binary, for example exec("/usr/local/bin/lame [options] [filename]");
lame
, or you have no right to launch it, or something else. As an option - to display the command that you are trying to execute and run it with pens. You will not get rid of errors with rights to launch, but at least you will be sure that such a command can be executed normally. - BOPOH