[英]apache user not able to run sox command
I have a test script which does following: 我有一个测试脚本,它执行以下操作:
$a = shell_exec("sox /var/www/html/media/file-all.gsm -r 8000 -c 1 -e signed-integer /var/www/html/wav-files/file-all.wav");
Still does not work. 仍然无法正常工作。
Any help appreciated. 任何帮助表示赞赏。
Thanks 谢谢
One possibility is, that the sox
command is not in the PATH used by apache user. 一种可能性是,
sox
命令不在apache用户使用的PATH中。
Specify the absolute path to sox
in your shell_exec()
call. 在
shell_exec()
调用中指定sox
的绝对路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.