1. Log into SSH of your server as root
2. Open less, vi, nano or another editor:
/var/log/php-rebuild.log
and review it to investigate the problem.
In case there is nothing then check processes running on your server/vps when you run the php compilation process.