Refs #5807, fix build regression (accessing archive.php via web request results in PHP error).
Merge branch 'master' into travis_system
Move travis.sh script and correctly reference in .travis.yml. Also make sure before_script.sh has access to travis_retry.