Compiled PHP

I have sucessfully compiled PHP. However, it works only for my first domain (the domain associated with DH) and not for the domains added.

My php.cgi and php.ini were copied into the cgi-bin folder of each domain. All are 755, and my htaccesses are:

AddHandler phpFour .php
Action phpFour /cgi-bin/php.cgi

Thanks a lot for any reply,