When calling a license app with exec() of PHP, the permission error occurs

Hi, all

I developed one C/C++ application that processes the licenses by using libLexActivator.so.
This application is executed through the exec() PHP function.

This application works well in command line.
But when calling through the exec() PHP function, the application doesn’t work.

I referred the following URL, but it isn’t helpful:

FYI: The additional information follows as below:
OS: Ubuntu 18.04 x64
libLexActivator.so Version:3.14.6



When php calls your binary, it uses a user which has no home directory. First figure out the user name of the user, then create a user directory for the user.