Phpmyadmin timeout or slow response

Source: Internet
Author: User
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:

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 in the code

The second problem is the phpmyadmin timeout problem. The default timeout value of phpMyAdmin is 1800 seconds. it is too short. when a few lines of code are written during development, the database times out, repeated logon is annoying. Modify the method. open phpMyAdmin/libraries/config. default. php and find $ cfg ['logincookievalidity '] = 1440. if you increase the value of 1440 in the row, OK.

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.