I'm trying to run a shell command text2wave in PHP on a nginx server.
The problem is the command just exits silently without working as it should. It's also not displaying any errors.
Here's the code:
<?php
$result = `/usr/bin/text2wave --help`;
var_dump($result);
If I run the script via php command in shell ( as a normal user) it works as expected. However, If I run it via a http request through nginx the var_dump returns NULL ( there are also not logs in error log files)
Thanks for your help!
text2wave
– Mukerjiini_set('display_errors','on')
in the first line and see if it shows any thing. – Mukerji/usr/bin/text2wave --help 2>&1
and see if it shows any output. – Mukerji