I've built my program into a release executable file and now I'm trying to execute it through PHP shell_exec()
function as below:
$result = shell_exec("./myprogram 2>&1");
But it always throwing Failed to create CoreCLR, HRESULT: 0x8007000E
error.
Even I have allocated 16G RAM for this server. It can run successfully if been executed directly from internal bash instead of from PHP shell_exec()
. What's wrong here?
User contributions licensed under CC BY-SA 3.0