NextCloudPi var/www access for wordpress site

I had Nextcloud running on Ubuntu server on a pi. It crashed after an update so I did a fresh install on nextcloudpi. My issue is the var/www I had write access to before in SSH and now I do not. How can I fix this or gain access to change the index.html to what I want.