开发者社区> 问答> 正文

阿里云服务器上的网站一直502错误同一个程序

升级PHP5.3解决

展开
收起
沃沃云 2015-06-01 15:54:00 6127 0
3 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    回 2楼(沃沃云) 的帖子
    楼主您好,

    好象从我的杭州ECS测试,可以。

    建议发工单,咨询一下工程师。 https://workorder.aliyun.com/
    curl https://mapi.alipay.com/gateway.do
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>֧▒▒▒▒ - ▒▒▒▒֧▒▒ ▒▒ȫ▒▒▒٣▒</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta name="description" content="▒й▒▒▒▒ĵ▒▒▒▒▒▒֧▒▒▒▒▒▒▒ṩ▒▒" />
    <meta name="keywords" content="▒▒▒Ϲ▒▒▒/▒▒▒▒֧▒▒/▒▒ȫ֧▒▒/▒▒ȫ▒▒▒▒/▒▒▒▒▒ȫ/֧▒▒/֧▒▒▒▒,▒▒▒▒/▒▒▒▒,▒տ▒/▒▒▒▒,ó▒▒/▒▒▒▒ó▒▒" />


    2015-06-01 23:02:22
    赞同 展开评论 打赏
  • 回1楼云代维的帖子
    发现了个奇葩的问题,curl方式访问百度淘宝网站都正常
    下面是代码
    curl方式访问 https://mapi.alipay.com/gateway.do? 就出现502错误了

    <?php
    //初始化
    $ch = curl_init();
    //设置选项,包括URL
    curl_setopt($ch, CURLOPT_URL, "https://mapi.alipay.com/gateway.do?");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    //执行并获取HTML文档内容
    $output = curl_exec($ch);
    //释放curl句柄
    curl_close($ch);
    var_dump($output);
    ?>
    2015-06-01 19:57:53
    赞同 展开评论 打赏
  • 有可能是环境问题
    2015-06-01 19:23:07
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云云原生 Serverless 技术实践营 PPT 演讲 立即下载
阿里云产品十月刊 立即下载
基于阿里云构建博学谷平台实时湖仓 立即下载