Verifique meus privilégios ubuntu

The simplest way is to use chown:

sudo chown -R testuser:testuser /var/www/test/public_html
Lokesh003Coding