chown and owner

Changes which user and group own a file.

Also called: owner, group, www-data

Source
General
Language
Bash

In plain English

Web servers run as their own user (often www-data); if it doesn't own the upload or cache folders, PHP can't write to them.

Example

Uploads failed until I used chown to give the storage folder to the web server user.

In code

sudo chown -R www-data:www-data /var/www/site/storage

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30