Both versions of PHP cannot be installed into apache. That's a limitation in apache.
So if you need both versions you'll have to compile httpd with one of the versions (your apache is already compiled with PHP4), and set up apache to use the other (in your case PHP5) as a cgi language.