Custon php install with symbolic links

ok, i’m at my wits end. no matter what i do, i can’t get my custom php install to work using symbolic links to the php binary.

i followed the instructions on the wiki for installing php and it works like a charm. if i copy the binary to my cgi-bin folder, everything works great. however, when i create a symbolic link (i want to use this php install across multiple domains), i get the “500 internal server error” message.

i have this in my .htaccess (in ~/ which is mapped to

Options +ExecCGI +FollowSymLinks
AddHandler phpFive .php
Action phpFive /cgi-bin/php.cgi

my php binary is ~/php5/bin/php and i tried creating symbolic links in various ways:

(from within ~/

ln -s /home/myusername/php5/bin/php php.cgi
ln -s ~/php5/bin/php php.cgi
ln -s …/…/…/php5/bin/php php.cgi

none of these work. what am i doing wrong? man, i am SO frustrated. please help! anyone!

thanks in advance!