phpMyAdmin configuration

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

    How to set phpMyAdmin default 1440 second timeout higher:

    1. locate php.ini

      el@apollo:/var/lib/phpmyadmin$ locate php.ini
      /etc/php5/apache2/php.ini
      
    2. open the file as root to edit, find this line:

      session.gc_maxlifetime = 1440
      
    3. Change it to this (500000 seconds is 5.7 days)

      session.gc_maxlifetime = 500000
      
    4. Restart apache.

    Doing this decreases security because then it increases opportunity for cross site scripting and man in the middle attacks. It's all fun and games until you find your server is part of a botnet farming for credit cards.

提交回复
热议问题