NextCloud Installation Ubuntu Server

I followed this tutorial ( to install Nextcloud and I am not having luck. I followed all the instructions and even tried to reinstall a couple of times but I get this (see attached screenshot) when I go to localhost/next cloud.

I had a great success installing nextcloudpi on docker in a raspberrypi but I would like to install it in my server. Any help is appreciated.

Looks like your webserver is not configured correctly to handle php files.