I have compiled php and apache successfully, without specifying the directory for the php config file. I want to add pear features, but there doesn\'t appear to be a php.ini
You have to copy the file php.ini-dist from PHP source. Standard way is copying such file to /usr/local/lib/php.ini.
php.ini-dist
/usr/local/lib/php.ini