From my last log post. I installed PHP from source and installed it in another directory. When I tried to install a PECL extension namely APC I was dumb founded that the extension_dir=PATH in my php.ini was not working!!
The reason this was happening was because I installed PECL before already so when I do
$> sudo pecl install apc
The old pecl command was the one that is executing so therefore will not install the extension appropriately. In addition my PHP.ini will not recognize my extension_dir whatever I do.
So the solution is use the binary command that came with your php install. Say I installed mine at /usr/local/php5.3/ then i would execute:
$> sudo /usr/local/php5.3/bin/pecl install apc
The above code will create an extension dir in your /usr/local/php5.3/lib/extension which should hold the apc.so file then your pecl module should work now.