简体   繁体   English

超时错误与php.ini中设置的不匹配

[英]Timeout error does not match what is set in php.ini

I used facebook debugger to check my server's image. 我使用了facebook调试器来检查服务器的图像。 Here is the facebook debugger. 这是facebook调试器。

But, I received an error of "Curl Error : OPERATION_TIMEOUTED Operation timed out after 10000 milliseconds with 444276 out of 524288 bytes received". 但是,我收到了一个错误“卷曲错误:OPERATION_TIMEOUTED操作在10000毫秒后超时,接收到524288个字节中的444276个”。

在此处输入图片说明

My server timeout setting 我的服务器超时设置

Here are the settings (php 7 and php 5.6) in Cpanel 这是Cpanel中的设置(php 7和php 5.6)

在此处输入图片说明

在此处输入图片说明

Here is the setting using ssh to find php.ini 这是使用ssh查找php.ini的设置

在此处输入图片说明

Then vim /etc/opt/rh/rh-php56/php.ini 然后vim /etc/opt/rh/rh-php56/php.ini

在此处输入图片说明

Wondering why the error says timeout is 10sec. 想知道为什么错误显示超时为10秒。 Any suggestions? 有什么建议么?

The reason comes from slow connection. 原因来自慢速连接。

Solutions: 解决方案:

  1. upgrade your server 升级服务器

  2. compress your image 压缩图像

  3. increase timeout 增加超时

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM