WordPress folder ownership issues

you can run something like

sudo chown -R myusername:www-data public_html

it will solve both the problems together