Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temp Dir is not accessible phpmyadmin

Tags:

php

phpmyadmin

Upon trying to establish a connection with phpMyAdmin Im getting the error:

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

I have looked on here at some solutions and I am still confused.

Do I need to create a new tmp folder within phpmyadmin and make it executable. Does a tmp folder need to be nested in xamppfiles/share

How do I resolve this.

like image 425
weng tee Avatar asked Apr 19 '18 19:04

weng tee


2 Answers

I was having this same issue on update to phpMyAdmin 4.8.0.1. Without changing permissions or adding any folders, you should open your $PMA-DIR/config.inc.php and edit the following section:

 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

Add $cfg['TempDir'] = '/tmp'; to the file. I made mine look like this:

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['TempDir'] = '/tmp';

If you already had this entry in your config.inc.php then make sure that the entry is correct.

Refresh phpMyAdmin in the browser and the error should be cleared.

like image 74
Forever Cuber Avatar answered Nov 13 '22 08:11

Forever Cuber


do mkdir tmp && chmod 777 tmp inside your phpmyadmin dir

then update config.inc.php file add

$cfg['TempDir'] = 'tmp';
like image 20
user889030 Avatar answered Nov 13 '22 10:11

user889030