Error in phpMyAdmin after updating to v4.8.0: The $cfg['TempDir'] (./tmp/) is not accessible

前端 未结 20 2396
别跟我提以往
别跟我提以往 2021-01-30 12:50

phpMyAdmin worked fine with v4.7.9. Now after updating to v4.8.0 today (replacing the old phpmyadmin folder against the new one) I\'m getting this mess

20条回答
  •  借酒劲吻你
    2021-01-30 13:04

    I had the same error message. I'm using Ubuntu16.04 with lampp. You should go to 'phpmyadmin' directory, in my case '/opt/lampp/phpmyadmin/', create a new 'tmp' folder. Open a terminal window and:

    cd YOUR_PATH_TO_PHPMYADMIN
    sudo mkdir tmp
    

    Now you have to change the group of the 'tmp' folder to give access to php user. In order to find it, you can create a php file inside your localhost directory, in my case 'htdocs'

    sudo touch user.php
    sudo nano user.php
    

    Inside nano editor, type:

    
    

    Then press CTRL + O and CTRL + X to save and exit. Open the browser and type in your address bar

    localhost/user.php
    

    It shows your php user.

    After that, go to the terminal and navigate to your recently created 'tmp' directory inside phpmyadmin directory and type:

    sudo chgrp YOUR_PHP_USER tmp -R
    

    And change the permission to the 'tmp' directory:

    sudo chmod 775 tmp -R
    

    I recommend never give 777 permission to any file.

    I hope it helps!

提交回复
热议问题