Install package unless PHP is compiled from source.

This commit checks that php was not compiled from source in order to
prevent installing the php package over the compiled php.

This change allows for the use of the apache php configuration whether
or not one is using compiled or a packaged PHP.