PHPIZE with multiple PHP versions

cDGo

Verified User
Joined
Sep 21, 2012
Messages
126
I'm running multiple versions of php on this server.
And I'm trying to install Xdebug
In their installation instructions they let you Run: phpize to check if you are using the right phpize.

I do get a different version then they suggest I would get.
Now I think that is because the first php set in custom build is an elder and other version then I want to install Xdebug for.
Is this correct, and if so, how to install it for the right php version.
And will it not cause issues for the other php versions?
 
Last edited:
Hi, I do understand that, but misunderstood the further instruction.
WIth your suggestion it makes sense now:
  1. /full/path/to/php/bin/phpize
  2. ./configure --with-php-config=/full/path/to/php/bin/php-config

1) to use the right command to verify use: /usr/local/php84/phpize (now shows the right version)
2) and instead of use ./configure you should use: ./configure --with-php-config=/usr/local/php84/bin/php-config

And it's working now!
Thanks
 
Back
Top