【已完成】PHP8.0安装curl扩展不支持http2
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:面板版本:9.2.0PHP版本:8.0
系统版本:
操作系统:Ubuntu 22
问题描述:
系统自带Curl扩展有HTTP2,通过软件商店安装的PHP8.0和8.1用phpinfo()查看Curl的HTTP2是NO,PHP快速安装、编译安装都试过了Curl下的HTTP2一直都是NO。这个要如何开启呢?
相关截图(日志、错误):
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdcAAABNCAIAAAB7bLkHAAAVNklEQVR4Ae2deVgT19rAu1xt3W7Vq1bbftWLEhZFtoACssliWLSAgHXDCoiiQklYAgiRRRAoS1AQQRCKICCyRdkMECCQhCSgSJA111Y/a91a5fqhrYR8T8AiYjAJBR3NO8/5Y3JyzpmZ33POLy/vDMkH/Le0DQ4O8ni8gYGBmzdvEolJZWXX2Ww+FCAABBBIoKioLSkpnclkcmGbAgIfvCUJ88HCCFxscEpAQCgBsPAUuPfFkGBhCMCBABAQQQAs/EKZU7AHFhYx/4SGBlAJBKSKAFh4Ctz7YkiwMFgYCAABEQTAwi+UOQV7YGER80+qQh64WCAglABYeArc+2JIsDBYGAgAAREEwMIvlDkFe2BhEfNPaGgAlUBAqgiAhafAvS+GRKKFmxh/kEu7f/yRPrpkn229VPOorvpWztlmUvmD0WuAxRyg1t47n9eSlX35QsVdBnNw9LvD+8ymPynkmzln2dm5bZU1fSwWf6jmRtbzozDO5nIqqx8xWXwWa6Ch7l5udtPQ0RlZOVdLK+83CRvz1aNADRB4LwmMtXBvD+cKu45SQ2e39gpk0stpba6j1NBYV4ZevvAL7IlDAIkWbqDcjvLByaHkUbIoGRkZmeUrUHKKa9ZZR6S0ZMSnrtPUdg4sH5nrTMaT4rPV27+xWqWgIItSWKtvjQ0qqqUNjDRgswfpDQ8zjmWYGxrIoVAoBWUjc+eIpGYq9beTkbGrh4ZHyckrKKqsN3eKTGqh0foLM0gGaEXBcVHy8gpKOuvt8eGVVDpv1JgQQQMBKSLwqo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QmCC
有大佬知道这个问题怎么解决吗 您好,您可以尝试尝试编译安装php
然后编译安装的时候添加上这部分配置
--enable - http2 堡塔运维南一 发表于 2024-11-21 16:13
您好,您可以尝试尝试编译安装php
然后编译安装的时候添加上这部分配置
--enable - http2 ...
是这样吗?
堡塔运维南一 发表于 2024-11-21 16:13
您好,您可以尝试尝试编译安装php
然后编译安装的时候添加上这部分配置
--enable - http2 ...
我通过自定义模块加了--enable-http2 安装完后 http2依然是NO 您好,这个问题如果没有解决的话,请重新发帖哈,这篇帖子就关闭了
页:
[1]