Install new extension after php was installed
Once PHP is installed, but new extention is required, it is always recommended to run the following, take ldap for example,
cd ext/
cd ldap/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
then all is done.