Hello,
This has really been a bit tricky..
We tried to look into every aspects but did not find any relevant script that would make your web site hosting go in loop. This is more to do with the DB settings, we also tried to dig the database but it seems very huge for us to check every entry.
We can wait for other Linux/php tycoons to look into it for you.