Site accessible only by IP and if I access by domain I get code only

I set up SuiteCRM on a DigitalOcean droplet, and I’m also going to be reaching out to them, but I have two issues.

  1. Even though my virtualhosts file seem to be working, I can only get the live/real site by using the IP address and it appears in the root of my domain. (This is probably a DO issue to check on).

  2. However, when I use my domain name to access the SuiteCRM instruction I see this in the upper left-hand corner of a white screen:

startSession(); $app->execute();

Likewise when I went to the install.php file, it was all php/code. I’m hoping it’s an easy fix as all the server stuff is a bit out of my range, but if someone could point me in the right direction I’d really appreciate it.

Ubuntu 20.04
LAMP stack
PHP 7.4