Forums | Mahara Community
Support
/
Issue upgrading to Mahara 25.04
21 August 2025, 14:48
Posted elsewhere:
I run the script https://mydomain/admin/cli/upgrade.php and the screen simply goes white. Nothing happens. Any thoughts? PHP version is 8.2.28 on a Ubuntu server. Incidentally, if I do: https://mydomain/admin/upgrade.php I receive an error message: /httpdocs/admin/upgrade.php:16 which when I look online seems to suggest that my PHP version is out of date, see above.
21 August 2025, 15:08
Hi,
The things I would check first are looking at the htdocs/lib/version.php file and check what version of the codebase you are currently on - sometimes upgrades from older versions of Mahara mean having to do incremental upgrades to in-between versions.
Then also check the htdocs/lib/mahara.php file for the `$phpversionrequired` value to make sure the current codebase can be run against the PHP version of the server. Double-check the PHP version for the webserver is correct - sometimes you can end up with the command line version and webserver version be on different versions of PHP
To check command line: php -V
To check the webserver: either make a file with phpinfo(); in it and serve that or check the ini file of your webserver, eg php -c /etc/php/apache2/php.ini -i | grep -i 'php version'