Check the release notes (https://docs.moodle.org/dev/Releases) for whatever version you are attempting to install. My bet is that you don't meet the requirement for the PHP version.
Installing and upgrading help
Parsing Error running install.php
This discussion has been locked so you can no longer reply to it.