Why install.php hangs during Step4?

Please make sure that the PHP setting "short_open_tag" is set to "On".

The easiest way to check all criteria at once is to download Check Requirements script and place it to your website.