I resolved it after finding this: http://wordpress.org/support/topic/installation-hangs-on-step-2-after-creating-basic-dbs-without-admin-user?replies=16
so i just edited the php.ini file as suggested in that post (increased the max_execution_time) and it worked for me.