I need to upgrade Moodle from 3.1.3 running on Ubuntu 14.04.5 LTS Code Name trusty to Moodle 3.7.2.
From what i searched on the Internet i will also have to upgrade to Ubuntu 18.04 for PHP support to be compatible with Moodle 3.7.2.
I have taken a backup of 3.1.3 and tried to restore it on a server with 18.04.
However I am getting an error when i try to run install,php with old database backup
Cannot use 'object' as class name as it is reserved in /var/www/html/moodle/lib/setuplib.php on line 66
Can anyone guide me to the correct upgrade path for this requirement of going from 3.1.3 to 3.7.2?