Php configuration file



I want to install some pear packages and am following the wiki article:

Where do I do ini_set( etc… ) . Currently, I put it in the php file where I want to include. Is there a way to set this globally? Do I have to set up php as a cgi? I currently just have the radio button in the panel set to PHP 5.