nel php.ini imposti max_execution_time = quello che vuoi