How to configure PHP to run the same version on the web server as in a background process
问题 From the command line: php --info //⇒ PHP Version => 5.5.18 From the command line within a background process: exec('php --info>>logs/phpVersion.txt'); //⇒ PHP Version => 5.5.14 I want the background process to run version 5.5.18 (or the same version as the web server). Where is that configured? 回答1: You must reinstall 5.5.18 to replace 5.5.14. It's not a configuration file, there are two instances of PHP. If you specify on OS, I will update this answer with further instruction. (Or just