PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, March 17, 2022

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

 March 17, 2022     directory, lampp, macos, phpmyadmin, xampp     No comments   

Issue

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.


Solution

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.



Answered By - Albert
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing