I have configured a VPS running CentOS 6.3 and Plesk 11. The install of a blank version of WordPress works well. However, I have problems with updating WordPress and searching for plugins. The two problems:
-
When trying to search a new plugin from within the WordPress backend I get an ‘Unknown error’. I have found a lot of references with people having this problem, however it is usually solved by the webhost as this is a server configuration issue. Since I am now my own webhost with the VPS, I would like to know how to solve this myself and improve my server configuration. I did not find anywhere online how to do this in practice.
-
A (most likely) related problem is that WordPress does not show any new updates. The current version of my blank install is 3.4.2 but once logging in, WordPress does not indicate that I should update to version 3.5. Also after performing an update check, WordPress does not find the new version.
Updating everything manually (via FTP) works well of course. But I would like the update process from within wordpress to work.
Anyone any ideas how to improve my PHP or other configurations to solve these update problems? Any help appreciated!
WordPress makes network requests via HTTP API abstraction layer, that tries to pick optimal method to connect – depending on server configuration (curl being one of preferable and common).
In your case it seems either network connectivity fails completely or WordPress fails to select working transport to make network requests.
You can use Core Control plugin to see what network transports are available/selected as detected by WordPress.
PHP is probably compiled without curl support. While we’re at it, it’s probably also compiled without some other useful libraries like GD. This should cover the basics for you:
php-curl is probably unnecessary because it should be included in php-common, but I added it just in case