Learn how to give proper ownership to files/folders for local development using NGINX + WordPress.
sudo chown -R theekshana:www-data /var/www/mytestsite
| Part | Meaning |
|---|---|
sudo |
Run as superuser |
chown |
Command to change ownership |
-R |
Recursive – apply to all subfolders and files |
theekshana |
You (the admin user) |
www-data |
Web server group (used by NGINX) |
/var/www/mytestsite |
The WordPress project directory |
✅ Perfect for development setups using VS Code + Remote SSH