Kselax.ru

Hacker Kselax – the best hacker in the world

Menu
  • Blog
  • Contacts
  • wp plugin generator
  • English
    • Русский
Menu

How to turn off phpmyadmin log out automatically

Posted on 22 August, 2019 by admin

Phpmyadmin always logout in a while time that is annoying… To fix that you have to change some variables in /etc/phpmyadmin/config.inc.php and /etc/php/7.0/fpm/php.ini. It’s for Ubuntu 16.04. Here is an official phpmyadmin documentation Cookie authentication options

In the /etc/phpmyadmin/config.inc.php  add the next code

1
2
3
4
5
$sessionDuration = 60*60*24*7; // 60*60*24*7 = one week
ini_set('session.gc_maxlifetime', $sessionDuration);
$cfg['LoginCookieValidity'] = $sessionDuration;
$cfg['LoginCookieValidity'] = 604800;
$cfg['LoginCookieStore'] = 604800;

In the file /etc/php/7.0/fpm/php.ini change the variable to

1
session.gc_maxlifetime = 999999

Restart php-fpm

1
sudo systemctl restart php7.0-fpm

That’s it

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • bash (1)
  • English (9)
  • JavaScript (4)
  • node.js (22)
  • photoshop (1)
  • php (3)
  • React (9)
  • sclerotic (6)
  • Ubuntu (10)
  • Uncategorized (13)
  • Wordpress (1)

Tags

Ajax apache2 automation bash chrome-extension command line editor ejs email English English-grammar framework functions git graphql handlebars hybrid app installation javascript js linux newbie node.js node.js javascript nodemailer npm objects Performance php phpmyadmin playonlinux promise rabbitmq React react-router redis reverse-proxy session shell socket.io sublime text 3 time zones ubuntu unity webpack

Recent Comments

  • damien on How to install npm and nodejs the latest versions on ubuntu
  • Cam on How to install npm and nodejs the latest versions on ubuntu
  • Pierre on socket.io with apache as a reverse proxy on the CentOS
  • admin on How to use react-router with a few languages
  • admin on How to install npm and nodejs the latest versions on ubuntu
©2021 Kselax.ru Theme by ThemeGiant