HMM interesting I have done many installs on PHP5. I run it on my site.
You can always go in through phpmyadmin and edit the settings table directly. The first say 30 settings you shall see which ones have www.domain.com
just replace with your domain name. Somehow your setup is not allowing the domain name weird indeed