hanyeah 专注于AS

阿里云安装wordpress出现500 Internal Server Error

如题,阿里云安装wordpress出现500 Internal Server Error的解决方案。

参考:https://www.aliyun.com/zixun/content/3_12_194015.html

./wp-includes/class-http.php中的

$request_order = apply_filters( 'http_api_transports', array( 'curl', 'streams' ), $args, $url );

替换为

$request_order = apply_filters( 'http_api_transports', array( 'streams' ), $args, $url );


可能不同版本,代码不太一样,但是原理都一样。


我的是4.5.2,代码是这样的:$request_order = apply_filters( 'http_api_transports', $transports, $args, $url );

$transports的定义是$transports = array(  'curl', 'streams' );

所以是将$transports = array(  'curl', 'streams' );

改为$transports = array( 'streams' );





2016年6月20日 | 发布:hanyeah | 分类:其他 | 评论:0

发表留言: