Manual:Chown

From mediawiki.org

Some situations may arise in which you need to use the chown command. Most commonly, you would need to use sudo chown -R www-data images/ if encountering a "Could not create directory" error when attempting to upload files. Doing a chown of the whole wiki file system can also sometimes help resolve 403 (Forbidden) errors.

See also