I just updated php and phpmyamdin and got these errors.
Warning in ./libraries/classes/Config.php#1681
mkdir(): Permission denied
Backtrace
Config.php#1681: mkdir(
string '/usr/share/webapps/phpMyAdmin/tmp/twig',
integer 504,
boolean true,
)
Template.php#60: PhpMyAdminConfig->getTempDir(string 'twig')
Theme.php#103: PhpMyAdminTemplate->__construct()
Theme.php#174: PhpMyAdminTheme->__construct()
ThemeManager.php#306: PhpMyAdminTheme::load(
string './themes/metro',
string '/usr/share/webapps/phpMyAdmin/./themes/metro/',
)
ThemeManager.php#89: PhpMyAdminThemeManager->loadThemes()
ThemeManager.php#129: PhpMyAdminThemeManager->__construct()
ThemeManager.php#397: PhpMyAdminThemeManager::getInstance()
common.inc.php#315: PhpMyAdminThemeManager::initializeTheme()
index.php#23: require_once(./libraries/common.inc.php)
Warning in ./libraries/classes/Config.php#1681
mkdir(): Permission denied
Backtrace
Config.php#1681: mkdir(
string '/usr/share/webapps/phpMyAdmin/tmp/twig',
integer 504,
boolean true,
)
HomeController.php#479: PhpMyAdminConfig->getTempDir(string 'twig')
HomeController.php#254: PhpMyAdminControllersHomeController->checkRequirements()
index.php#119: PhpMyAdminControllersHomeController->index()
The $cfg['TempDir'] (/usr/share/webapps/phpMyAdmin/tmp/) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.
Warning in ./libraries/classes/Config.php#1681
mkdir(): Permission denied
Backtrace
Config.php#1681: mkdir(
string '/usr/share/webapps/phpMyAdmin/tmp/twig',
integer 504,
boolean true,
)
Template.php#60: PhpMyAdminConfig->getTempDir(string 'twig')
Theme.php#103: PhpMyAdminTemplate->__construct()
Theme.php#174: PhpMyAdminTheme->__construct()
ThemeManager.php#306: PhpMyAdminTheme::load(
string './themes/metro',
string '/usr/share/webapps/phpMyAdmin/./themes/metro/',
)
ThemeManager.php#89: PhpMyAdminThemeManager->loadThemes()
ThemeManager.php#129: PhpMyAdminThemeManager->__construct()
ThemeManager.php#397: PhpMyAdminThemeManager::getInstance()
common.inc.php#315: PhpMyAdminThemeManager::initializeTheme()
version_check.php#20: require_once(./libraries/common.inc.php)
I’ve tried making the directory and it didn’t work and changing the permissions to 777 is a terrible fix and I don’t wanna do that. Also I am on linux Manjaro gnome
Fix it with this simple fix.
https://stackoverflow.com/a/66016297/11251368
Also how do I tag as anwsered?
2
Answers
I made this directory:
/usr/share/webapps/phpMyAdmin/tmp/twig
and worked for me
I solved this problem by giving permission 777 (rwx) to tmp directory :
or as you have here: