+3 votes
in Web & Google by (48.5k points)

When I open phpMyAdmin page, it give the following warning message. How can I fix this issue?

The $cfg['TempDir'] (./tmp/) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.

I running my server on Debian 10 and am using HestiaCP control panel.

1 Answer

+1 vote
by (271k points)
selected by
Best answer

Since you are using Debian OS, the easiest fix for this issue is to modify the configuration file "/etc/phpmyadmin/config.inc.php"

  • Open /etc/phpmyadmin/config.inc.php in an editor.
$ vi /etc/phpmyadmin/config.inc.php
  • Search for the line containing $cfg['TempDir'] and if it's not there, make the following changes to add $cfg['TempDir'] = '/tmp';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';


$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['TempDir'] = '/tmp';

Reopen phpMyAdmin in the browser. The problem should be gone.