Php exec Failed to create CoreCLR

Hi, I trying to run my .NET Core console app using php exec function but I get following error: Failed to create CoreCLR, HRESULT: 0x8007000E. But everything works fine when I run my app from terminal (root user).

[Linux] Failed to initialize CoreCLR, HRESULT: 0x8007000E · Issue #13027 · dotnet/runtime · GitHub I tried to set virtual memory limit to unlimited using below commands:

runuser -l <WEBSITE_USERNAME> -c 'ulimit -Sv unlimited'
runuser -l <WEBSITE_USERNAME> -c 'ulimit -Hv unlimited'

Then I created a php file and wrote below code into it to check if virtual memory is unlimited

exec("ulimit -v", $output);

Result: Array ( [0] => 2096128 )
I don’t know why but virtual memory limit didn’t changed.

I’ll be appreciated if someone could guide me.