A small issue with Drupal

Source: Internet
Author: User
Tags drupal

Drupal usesdrupal_http_requestFunction to obtain system updates or RSS information from other websites. Ifdrupal_http_requestFunction access fails.drupal_http_request_failsSet variableTRUE. For subsequent access, you must firstsystem_check_http_requestTo confirm that the system does supportdrupal_http_request. Whilesystem_check_http_requestYesdrupal_http_requestVisit your site.

This system has no problems, but if nginx + PHP-CGI (1 child) mode is used in the background, because there is only one PHP-CGI instance, the PHP running in it cannot access its own site. At this time, PHP-CGI is already busy. The gateway time out error occurs.

This issue has no impact on common users. Only when/adminAnd/admin/report/statusErrors may occur because these two webpages callsystem_check_http_request, Ifdrupal_http_request_failsTrue.
Two-child birth permit http://www.0123.cn/ertai/
Solution,

  1. Modifysystem.moduleFilesystem_check_http_requestSo that it can detect websites like Google that will not be dropped.drupal_http_request.
  2. Use two PHP-CGI children
  3. Modify the configuration of the Web server (nginx). If the access/request is initiated from a local machine, it is automatically switched to a static file.


Modifying system modules will always cause a variety of troubles. Two PHP-CGI instances consume a large amount of memory. Although the latter solution is ugly, it is easier to use, we will not worry about Drupal upgrade in the future.

 

A small issue with Drupal

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.