Moodle 4.4 or later requires at least PHP 8.1 (currently using version 5.5.9-1ubuntu4.29). Some servers may have multiple PHP versions installed, are you using the correct executable?