opendkim命令无法使用PHP

I am running this command opendkim-genkey --domain=example.com --selector=example --subdomains on Linux terminal, It is working properly, but when I try to run this in my PHP page like shell_exec("opendkim-genkey --domain=example.com --selector=example --subdomains"); this is not working.. I also try to run another command in my php page, and I get result of them.

I can see three explanations: