If you are getting a vtiger timeout make sure you are using mod_php instead of mod_fcgid
I spend a few days trying to install vtiger 5.30 and the install kept timing out with internal server error 500 while creating the mysql database.
The error I was getting was:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer:
Premature end of script headers: install.php, referer: install.php
Change server setting to use m0d_php instead to mod_fcid