Today installed the latest version of the phpMyAdmin, installed a test, and found that sometimes the reaction is very slow, view the Nginx log, is reported fastcgi connection timeout. Then open fastcgi's slow log 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, is phpMyAdmin constantly update the version of the check, and the domestic server connection phpMyAdmin server is very slow, and may not connect, so caused the phenomenon of timeout.
Workaround:
Edit the version_check.php file in the
The code is as follows |
|
<?php: Add below Exit |
Save the test, the slow response problem is resolved.
Here's a second question, the phpMyAdmin timeout problem.
The default timeout for phpMyAdmin is 1800 seconds, too short
A few lines of code to write in the development process to look at the database timed out,
Repeated logons are annoying.
To modify the method:
Open phpmyadmin/libraries/config.default.php
Find $cfg[' logincookievalidity ' = 1440; Yes
Just turn the 1440 up a little, okay?