upgrade System Check gateway timeout

I am trying to upgrade from 7.5.3 to 7.6.3 yet I am getting a gateway timeout during system check. So I can not complete the upgrade check due to the gateway timeout (The gateway did not receive a timely response from the upstream server or application.)

according to my log file I am receiving a MySQL server has gone away error

I am doing this on a newly created dev site so not to cause any problems.

I have doubled checked all the prerequisites for upgrade and Max file PHP settings and all check out.

Do you have any thoughts?

Navigate to your installation folder:

modules/UpgradeWizard/systemCheck.php
Find the line in the file that initializes the $skipDirs array and add the two folders it mentions in the comment ‘cache’, and ‘upload’, to the array initialization.

// add directories here that should be skipped when doing file permissions checks (cache/upload is the nasty one)
$skipDirs = array(
$sugar_config[‘upload_dir’],
‘.well-known’,
‘.svn’,
‘.git’,
[color=#bb0000] ‘cache’,
‘upload’,[/color]

);