phpMyAdmin Timeout or slow response

Source: Internet
Author: User
Tags php file phpmyadmin

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.