宝塔面板是最新版本,服务器是Windows Server 2016 数据中心版 64位简体中文,16G内存,apache2.4.52,php版本 php 5.6,未安装非默认扩展
- [Thu Oct 27 17:00:35.428312 2022] [ssl:warn] [pid 35756:tid 844] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
- [Thu Oct 27 17:00:35.748502 2022] [ssl:warn] [pid 27260:tid 140] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
- [Thu Oct 27 17:00:35.864835 2022] [ssl:warn] [pid 27260:tid 140] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
- [Thu Oct 27 17:06:31.969160 2022] [fcgid:warn] [pid 27260:tid 24824] (OS 109)�ܵ��ѽ����� : [client 117.34.28.170:38796] mod_fcgid: get overlap result error
- [Thu Oct 27 17:06:31.969160 2022] [core:error] [pid 27260:tid 24824] [client 117.34.28.170:38796] End of script output before headers: index.php
复制代码
背景,框架 thinkphp 2.1 使用 腾讯云存储标准sdk,
- $cosClient = new Qcloud\Cos\Client(
- array(
- 'region' => $cos['region'],//设置一个默认的存储桶地域
- //'schema' => 'https', //协议头部,默认为http
- 'credentials'=> array(
- 'secretId' => $cos['SecretId'] ,//"云 API 密钥 SecretId";
- 'secretKey' => $cos['SecretKey'])));//"云 API 密钥 SecretKey";
- $local_path = $file;
- <font color="#ff0000"> #自此行以上可以正常运行,此行以下报 500 错误</font>
- try {
- $result = $cosClient->upload(
- $bucket = $cos['bucket'] ,//格式:BucketName-APPID
- $key =$filename,
- $body = fopen($local_path, 'rb')
- );
- // 请求成功
- //dump($result['Location']) ;
- return $result;
- } catch (\Exception $e) {
- // 请求失败
- return $e;
- }
复制代码 错误日志有此错误信息
- [Thu Oct 27 17:06:31.969160 2022] [fcgid:warn] [pid 27260:tid 24824] (OS 109)�ܵ��ѽ����� : [client 117.34.28.170:38796] mod_fcgid: get overlap result error
- [Thu Oct 27 17:06:31.969160 2022] [core:error] [pid 27260:tid 24824] [client 117.34.28.170:38796] End of script output before headers: index.php
复制代码 还请大师帮忙排查!
|
|