phpMyAdmin configuration

后端 未结 10 1098
刺人心
刺人心 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:49

    I add to Poelinca's answer that the mechanism of this limit can be found in the PMA sources under libraries/Config.class.php,

    function checkUploadSize()

    It will use upload_max_filesize if defined or 5M else and if max_upload_size is also defined it will get the min of the two.

    (PMA version 3.3.7deb7)

    0 讨论(0)
  • 2021-02-01 03:54

    I'm aware this post has been answered, but I've just resolved the same issue, so I thought I would add my findings to help others.

    I needed to increase the PhpMyAdmin upload file size limit from default the 2,048KiB and I too changed the upload_max_filesize and post_max_size and memory_limit, but nothing changed.

    It took my a while to find the problem, when I used the phpinfo(); script to identify where the PHP.ini file was it said was here: C:\Program Files (x86)\iis express\PHP\v5.5\php.ini, but I finally noticed in the PhpMyAdmin homepage that the Web server was running version: 5.6.31. So, I updated the upload, post and memory limits in the PHP.ini for both versions 5.5 and 5.6 and the import limit in PhpMyAdmin increased.

    0 讨论(0)
  • 2021-02-01 03:56

    Edit phpMyAdmin's config.inc.php and add or update LoginCookieValidity the value as follows:

    $cfg['LoginCookieValidity'] = 3600 * 9; // 9 hours
    

    In wamp or xampp or anything you use at php.ini, Search for upload_max_filesize this is where you should change it,

    we suggest you not use more than 64M filesize cause sometimes it makes crash:

    upload_max_filesize = 64M
    

    Save and exit.

    0 讨论(0)
  • 2021-02-01 03:58

    Rather than setting session.gc_maxlifetime in the php.ini file, better to add the following to your config.inc.php file (typically in the /etc/phpmyadmin directory):

    ini_set('session.gc_maxlifetime', '86400');
    

    That way you don't compromise security for other PHP scripts, or cause excessive clutter in the RAM due to infrequent Garbage Collection.

    0 讨论(0)
提交回复
热议问题