简体   繁体   中英

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
  • source and destination both files and folders have 777 permission
  • 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.

Specify the absolute path to sox in your shell_exec() call.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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