How to fix the WordPress error : "An error occured while updating"..."Could not create directory"

When updating a WordPress theme or plugin you might sometimes get the following error message :


"An error occured while updating"..."Could not create directory"


This is usually due to a wrong  file permission setting on your server, local or live.

What are the file permission ?

On computer filesystems, different files and directories have permissions that specify who and what can read, write, modify and access them. This is important because WordPress may need access to write to files in your wp-content directory to enable certain functions.

source wp.org ( https://codex.wordpress.org/Changing_File_Permissions )

How to fix the problem?

Don't worry, this is a very common and easy to fix problem when using with WordPress. We have published a  specific documentation about file permission in WordPress to help you fix this issue.