The standalone php binary is not installed by php ebuild. It probably should be /usr/bin/php and is required to interpret standalone php scripts beginning with #!/usr/bin/php
check the phpcgi ebuild