I was installing wamp 2 on vista yesterday and had a similar problem I had
amended the apache version but not the php.ini version.ory
My PATH was pointed at the php directory and the apache directories so it was reading the php.ini first when I amended my php.ini it worked.
In your case I suspect you haven't got the php or apache path variable set