I'm running PHP 5.4.9 on Windows server
I've tried running all script commands in PHP (exec, shell_exec, system, proc_open, passthru). All seem to return empty or null.
I've added phantomjs as a PATH variable.
And running phantomjs --version in command prompt, and it returns 1.8.2
Although when I try to run
$return = exec("phantomjs --version")
or
$return = shell_exec("phantomjs --version", $output)
$return is always null and $output is empty.
I made sure IUSR and IIS_IUSRS users have permission to run phantomjs.exe
Safe mode is disabled in php.ini
Also, I tried running exec('ls') && exec('ipconfig /all'), and those output the data I'm expecting.
I'm not sure what else to try.