phpMyAdmin time-out or slow response workaround _php Tutorial

Source: Internet
Author: User
phpMyAdmin time-out or slow response reasons I analyzed there are two, time-out is set time is not enough, the default is 1800 seconds, and the slow response is phpmyadmin automatically check the update caused, let me specifically solve the operation method.

Today installed the latest version of the phpMyAdmin, installed the test, found that the reaction is very slow, and view the Nginx log, is reported 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, is the phpMyAdmin constantly version of the check update, and the domestic server connection phpMyAdmin server is ultra-slow, and may not be able to connect, so caused the phenomenon of timeouts.
Workaround:
Edit the version_check.php file,

The code is as follows Copy Code

Add the following

Exit

Save the test, the response slow problem solved.

Here's a second question, the phpMyAdmin timeout problem.


The default time-out for phpMyAdmin is 1800 seconds, too short.

Write a few lines of code in the development process come back to see the database has timed out,

Repeated logons are annoying.

Modification Method:

Open phpmyadmin/libraries/config.default.php

Find $cfg[' logincookievalidity '] = 1440; Yes

Make the 1440 bigger.

http://www.bkjia.com/PHPjc/633194.html www.bkjia.com true http://www.bkjia.com/PHPjc/633194.html techarticle phpMyAdmin time-out or slow response reasons I analyzed there are two, time-out is set time is not enough, the default is 1800 seconds, and the slow response is phpMyAdmin automatic check update caused by, below I ...

  • 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.