Make sure that your custom-compiled-PHP is first in your PATH. If it isn’t, put it there before doing the rest of the install.
- $ echo $PATH
$PHPDIR/install-debug-zts/bin:/usr/local/bin:/usr/bin
- $ phpize
- $ ./configure
- $ make
- $ make install
Add in php.ini
extension=hello.so
$ php -r 'sayhello();'