Ip/nextcloud showing only index.php

I have just created a server and followed the instructions on this website and am running into the issue where instead of actually loading the GUI I am looking at the contents of the /var/www/nextcloud/index.php file.

I have found some similar issues, one of them was inconclusive and things that were working for them are not working for me. Another said that some PHP modules were uninstalled but did not say what modules they installed to fix it.

Hi @Senate66

Sorry, but I’d suggest you start over, because…

  1. The “tutorial” you linked is as basic as a tutorial possibly can be.
  2. It’s from 2016!

I don’t know how much experience you have with Linux in general and specifically with LAMP stacks, but I would recommend the following tutorials:

If you are a beginner I would recommend to go with this: Build an Awesome Nextcloud Server (Updated for Ubuntu 22.04!) – Learn Linux TV

If you’re an advanced Linux user, or if you want to improve your instance later down the road, i highly recommend to take a look at following site… (even if you don’t speak German.)

Apache: Nextcloud Installationsanleitung Apache2 - Carsten Rieger IT-Services

nginx: Nextcloud Installationsanleitung - Carsten Rieger IT-Services