简体   繁体   English

apache用户无法运行sox命令

[英]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");
  • script runs as apache user 脚本以apache用户身份运行
  • source and destination both files and folders have 777 permission 源和目标文件和文件夹均具有777权限
  • tried changing the group and ownership to apache user too 尝试将组和所有权更改为也可以访问用户

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM