📌 Goal:

Learn how to give proper ownership to files/folders for local development using NGINX + WordPress.

🔧 Command:


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

✅ What It Does:

✅ Perfect for development setups using VS Code + Remote SSH