- Plesk for Linux
The WordPress theme cannot be updated/installed.
The following error appears in
CONFIG_TEXT: AH01071: Got error 'PHP message: PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/vhosts/example.com/httpdocs/wp-includes/update.php on line 529\n', referer: https://example.com/wp-admin/admin.php?page=associates-link-builder-settings
api.wordpress.orgresolves to the custom IP address:
# dig +short api.wordpress.org
# curl -vvv api.wordpress.org
* Rebuilt URL to: api.wordpress.org/
* Trying 203.0.113.2...
A record regarding the website
api.wordpress.orgexists in the
# cat /etc/hosts | grep api.wordpress.org
api.wordpress.org resolves to the custom IP address in
Connect to the server via SSH.
/etc/hostsfile via text editor and remove the following row from it:
CONFIG_TEXT: 203.0.113.2 api.wordpress.org
Save all made changes and close the