Most likely you installed the new php in a different location or with a different name of the php interpreter.
You can check the LoadModule section of your Apache configuration for the PHP module. Probably this is the old one. Try to find the new one and put it into your Apache configuration (replacing the old one). Restart Apache afterwards.