Well, one thing I noticed is when I tried installing wordpress on a different machine where there was no conflict between port 80 between IIS and Apache, it was installed and working fine.
Now my guess is something must have gone wrong when I assigned a different port numbers for Apache to run.