Moving matomo to a different domain on the same hosted server - failed

Hi,

I’m not too sure if this is worth the move. If your DNS lookup takes up to 0.6s, this is something you should look into. At least for my website the SSL handshake, TCP connection and DNS resolution overhead of the Matomo subdomain is 31ms, 28ms and 8ms. Also they are all only on the first request and even if they took a long time it would not slow down your website as Matomo is only starting loading once the website can be interacted with by the user.

Subdomains have their advantages as they separate Cookies (which is good for security) and make sure .htaccess rules don’t affect other applications in subdirectories.


But that is besides your point. MySQL server has gone away can have many reasons as it is caused by the connection between PHP and MySQL.

See here for some tips: