phpMyAdmin configuration

后端 未结 10 1131
刺人心
刺人心 2021-02-01 03:08
  • How do I increase phpmyadmin session timeout?
  • How do I increase phpmyadmin import file size limit(currently it says Max: 2,048KiB). I tried changing upload_
10条回答
  •  孤城傲影
    2021-02-01 03:46

    For the first question, you need to change the $cfg[‘LoginCookieValidity’] config in the config.inc.php. Open config.inc.php in the phpMyAdmin “root” directory. Look for a line that contains this: $cfg[‘LoginCookieValidity’]. Set the value to the desired amount of seconds. If the line doesn't exist, just add it like this:

    $cfg[‘LoginCookieValidity’] = 3600; //(3600 = one hour)
    

    You will need to login again to phpmyadmin.

    This also assumes that the PHP session garbage collection is set-up accordingly. This can be done in a number of ways:

    • php.ini; add a line (or change an existing) that contains session.gc_maxlifetime =
    • Apache configuration; add a line to the appropriate block that says php_admin_value session.gc_maxlifetime
    • config.inc.php (phpMyAdmin); after the previously edited line, add a line with ini_set(‘session.gc_maxlifetime’, );

    About the second question:

    You need to change both, upload_max_filesize and post_max_size in your php.ini. The post_max_size value needs to be at least the upload_max_filesize value.

    Don't forget to restart your server

    Reference

提交回复
热议问题