Phpmyadmin timeout or slow response. I have analyzed two reasons for phpmyadmin timeout or slow response. timeout means that the setting time is not enough. The default value is 1800 seconds. slow response is estimated to be caused by phpmyadmin's automatic check and update, in the following analysis, I have two reasons for my phpmyadmin timeout or slow response. timeout means that the setting time is not enough. The default value is 1800 seconds. slow response is estimated to be caused by phpmyadmin's automatic update check, the following describes the specific solution.
Today, phpmyadmin is installed in the latest version. after the installation is completed and tested, it is found that the response time is too slow. check the nginx log to report a fastcgi connection timeout. Then open the slow log of fastcgi and find the following error:
[10-May-2013 11:15:16] [pool www] pid 10992 script_filename =/usr/share/nginx/html/phpmyadmin-1688/version_check.php [0x0000000002902e78] file_get_contents () /usr/share/nginx/html/phpmyadmin-1688/version_check.php: 240
The problem is obvious: phpmyadmin constantly checks and updates the version, while the domestic server is too slow to connect to the phpmyadmin server, and may not be able to connect, resulting in timeout.
Solution:
Edit the version_check.php file
The code is as follows: |
|
Add Exit; |
Save the Test and solve the slow response problem.
The second problem is the phpmyadmin timeout problem.
PhpMyAdmin's default timeout is 1800 seconds, which is too short.
A few lines of code are written during the development process. Once the code is returned, the database times out,
Repeated logon is annoying.
Modification method:
Open phpMyAdmin/libraries/config. default. php
Find $ cfg ['logincookievalidity '] = 1440; row
It's okay to increase the value by 1440.
...