WordPress failed to install theme online on Linux

Source: Internet
Author: User

[[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 can download the theme through the link, Linux wget know that jump to HTTPS can not be authenticated, need to add parameters wget--no-check-certificate http://wordpress.org/themes/download/ Moesia.1.09.zip can download, or add www, in PHP changes as follows: (Wordpress/wp-admin/update.php's ' install-theme ' = = $action)

$upgrader->install ($api->download_link);

Switch

$upgrader->install (Str_replace (' http://', ' http://www ', $api->download_link));


WordPress failed to install theme online on Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.