Error uploading file Access Denied

I did a basic install. I didn’t change any data directories. I am running ubuntu 16.04, PHP 7.0 mysql 5.7.15

Also we are not configured so far that I can’t just do a reinstall. If removing and starting over can be done easily than I will do that.

Data directory: /var/www/nextcloud/data

I agree this doesn’t make sense. Because it was working. I did remove one program that was causing the CPU to peg on the server. Ejabberd just an fyi. Other than that I don’t see or have any other errors just warnings.

our data directory and your files are probably accessible from the Internet. The .htaccess file is not working. We strongly suggest that you configure your web server in a way that the data directory is no longer accessible or you move the data directory outside the web server document root.

You are accessing this site via HTTP. We strongly suggest you configure your server to require using HTTPS instead as described in our security tips.

No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.