Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using XAMPP and one day I was on PhpMyAdmin and saw this error message:

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

I know you have to add a folder except the folder called PhpMyAdmin in LAMPP won't let me add folders. When I tried to change the permission settings in "Get Info" It just changed itself back to "Read only" instead of "Read and Write".

I will appreciate any help.

PS. I am using a Mac.

like image 241
That That Avatar asked Jan 26 '23 16:01

That That


1 Answers

I had this problem with XAMPP 7.3.3-1 today after running a test with mysqli_real_escape_string (maybe a coincidence, I don't know).

This solved my problem:

Stop the services.

Create a /tmp folder under the phpmyadmin folder, using the Terminal:

sudo mkdir -p /Applications/XAMPP/xamppfiles/phpmyadmin/tmp/

Then I changed the permissions similar to (but not exactly) like the Xampp support suggested at https://community.bitnami.com/t/the-cfg-tempdir-tmp-is-not-accessible/60376.

sudo chown daemon /Applications/XAMPP/xamppfiles/phpmyadmin/tmp/
sudo chmod 775 /Applications/XAMPP/xamppfiles/phpmyadmin/tmp/

Then restart both Mysql Database and Apache WebServer.

Hope this helps.

like image 119
Albert Avatar answered Jan 29 '23 05:01

Albert