PHP exec works on apache2 but not on nginx -
i'm trying launch unoconv using exec in php. works apache2, not nginx. i've checked php.ini , disable_functions not contain exec in both apache2 , nginx php.ini files.
i'm not familiar unconv, i've had similar problem porting server apache nginx , exec.
nginx + php-fpm have bare minimal $path set compared apache, , it's unoconv not on path.
you try modifying path settings, better way specify absolute path of unoconv
you can find absolute path using
which unoconv you should re-direct error output stdout, can see why unoconv isn't starting
exec("/path/to/unoconv -param0 -param1 2>&1", $output); print_r($output); //this should give failure reason
Comments
Post a Comment