Problem in wordpress when changing hosting company
This is a problem I faced with my site built on wordpress when I changed my hosting plan in hostgator. Earlier I was using basic hosting plan of Hostgator, later on last March I had updated my account to reseller account. The hosting company transferred all my files and db safely so the site was running smoothly. Later when I tried to upload an image in course of writing a new blog I always got error message mentioning to provide write permission to folder wp-contents/upload (Unable to create directory /wp-content/uploads/). I tried numerous time to permit the folder with write permission but it did not solved the issue. On cross checking the earlier configuration of wordpress setting in table ‘wp_options‘ I found value of a row across ‘upload_path‘ set to the old path of the server. So this was the main reason I could not upload images to new server. After setting the value from the ‘DOCUMENT_ROOT‘ from the phpinfo function to this row solved the issue.
You can even try the following steps:
- Log into Admin account.
- Go to ‘Media’ Settings options from the ‘Settings’ menu.
- In the Media Settings put wp-content/uploads in the “Store uploads in this folder” text box.
- Save the Changes by hitting the “Save Changes” button.