A couple of times I thought I spotted my error – a missing packages, incorrect permissions, but I fixed those errors and still have the same result.
To be clear, what I mean is that my browser is showing the index PHP code instead of executing or interpreting it. Like this:
. */ use Gibbon\\Domain\\System\\ModuleGateway; use Gibbon\\Domain\\DataUpdater\\DataUpdaterGateway; use Gibbon\\Domain\\Students\\StudentGateway; use Gibbon\\Domain\\User\\UserGateway; /** * BOOTSTRAP * * The bootstrapping process creates the essential variables and services for * Gibbon. These are required for all scripts: page views, CLI and API. */ // Gibbon system...
Permissions
Here are the permissions on the folder:
vagrant@vagrant:/var/www$ ls -la
total 20
drwxr-xr-x 5 root root 4096 Sep 23 12:07 .
drwxr-xr-x 12 root root 4096 Sep 23 08:30 ..
drwxr-xr-x 15 www-data www-data 4096 Aug 20 04:04 gibbon.local
Installed PHP Packages
Here are my installed PHP packages:
vagrant@vagrant:/var/www$ apt list --installed | grep php
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
php-apcu/bionic,now 5.1.9+4.0.11-1build1 amd64 [installed]
php-apcu-bc/bionic,now 1.0.3-2ubuntu2 amd64 [installed,automatic]
php-common/bionic,bionic,now 1:60ubuntu1 all [installed,automatic]
php-mysql/bionic,bionic,now 1:7.2+60ubuntu1 all [installed]
php-pear/bionic-updates,bionic-updates,bionic-security,bionic-security,now 1:1.10.5+submodules+notgz-1ubuntu1.18.04.1 all [installed,automatic]
php-sqlite3/bionic,bionic,now 1:7.2+60ubuntu1 all [installed]
php7.2-cli/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-common/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-curl/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-dev/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-fpm/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-gd/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-imap/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-json/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-mbstring/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-mysql/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed,automatic]
php7.2-opcache/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-phpdbg/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed,automatic]
php7.2-readline/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed,automatic]
php7.2-sqlite3/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed,automatic]
php7.2-xml/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
php7.2-zip/bionic-updates,bionic-security,now 7.2.19-0ubuntu0.18.04.2 amd64 [installed]
pkg-php-tools/bionic,bionic,now 1.35ubuntu1 all [installed,automatic]