I go this error when upgrading from 5.0.2 to 5.0.4. My server is Debian 10.6, I have phpMyAdmin installed in /var/www, where phpMyAdmin is a symlink to the actual directory.