Vishal
Vishal

Reputation: 91

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

Upvotes: 0

Views: 320

Answers (1)

JSchirrmacher
JSchirrmacher

Reputation: 3362

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.

Upvotes: 2

Related Questions