We have a situation where we're using circusd to manage processes and somehow, PHP is loading different libraries (specifically curl) when called from circus versus the command line.

From command line:


From circusd:


We have two versions of curl installed - I can't remove the older one as yum and other system processes rely on it, but I need the newer one that supports HTTP/2 in it.

My question is, how do I force PHP to use the newer library? This works fine on our test environment (ie. both libraries and PHP sees the newer one) so I'm assuming some sort of path issue.

  • circusd appears to be python - how exactly are you calling the php? – ivanivan Dec 7 '17 at 0:51
  • circusd calls it as a script which has php at the top: #/usr/bin/php – Jeremy Wilson Dec 7 '17 at 1:15

Most likely, php is using different php.ini files for the different environments. The easiest way is to use php -i, or phpinfo(); to determine exactly which php.ini file each environment is using. That should get you started on getting both to use the same curl version. It could be as simple as creating a symlink from the right php.ini to where the incorrect one was. Good luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.