標籤:http io os ar sp 2014 on cti ad
[[email protected] wangnan]$ wget http://wordpress.org/themes/download/moesia.1.09.zip --2014-10-20 13:51:05-- http://wordpress.org/themes/download/moesia.1.09.zip Resolving wordpress.org... 66.155.40.249, 66.155.40.250Connecting to wordpress.org|66.155.40.249|:80... connected.HTTP request sent, awaiting response... 302 Moved TemporarilyLocation: https://wordpress.org/themes/download/moesia.1.09.zip [following]--2014-10-20 13:51:05-- https://wordpress.org/themes/download/moesia.1.09.zip Connecting to wordpress.org|66.155.40.249|:443... connected.ERROR: certificate common name `*.wordpress.org‘ doesn‘t match requested host name `wordpress.org‘.To connect to wordpress.org insecurely, use `--no-check-certificate‘.Unable to establish SSL connection.
windows可以通過連結下載主題,linux wget得知跳轉到https無法認證,需要加參數wget --no-check-certificate http://wordpress.org/themes/download/moesia.1.09.zip可以下載;或者加上www,在php裡面更改如下:(wordpress/wp-admin/update.php的‘install-theme‘ == $action)
$upgrader->install($api->download_link);
改為:
$upgrader->install(str_replace(‘http://‘, ‘http://www.‘, $api->download_link));
wordpress在linux上線上安裝主題失敗