.NET Core 3.1 Unable to run executable program from PHP shell_exec()

0

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?

c#
php
linux
.net-core

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0