Answer the question
In order to leave comments, you need to log in
How to properly start a process from PHP?
Bundle of Nginx + php-fpm
In php I execute the command:
$exc = 'openssl smime -verify -inform PEM -nointern -certfile ' . $this->_getPublicKey() . '-CAfile' . $this->_getPublicKey() . '-in' . $fileInName .$
exec($exc);
[01-Apr-2016 17:36:45] WARNING: [pool www] child 14651 said into stderr: "Verification successful"
Answer the question
In order to leave comments, you need to log in
You clearly wrote said into stderr . This means your command is writing to the wrong thread .
To redirect stderr to stdout , add 2>&1 at the end of the command .
To redirect anywhere: 2>/dev/null
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question