Fixing Wordpress error "There was an error connecting to the server, Please verify the settings are correct." on Ubuntu 11.04

One of the most common error in doing anything on Wordpress is this.

There was an error connecting to the server, Please verify the settings are correct.

It comes in many colours such as FTP error, local connection error etc. The error appears frequently when you change themes, update Wordpress or change plugins. In most cases, the problem is related to the permission issues related to wordpress directory installed on your computer. I think this solution below covers most occurances of this error. Give it a try.

  1. 1. Locate and go into your Wordpress directory. In my case,
  2. cd /usr/share/wordpress
  3. 2. Perform change owner command
  4. sudo chown -R www-data:www-data *