Good day,
When I enter maintenance mode with the following command, it succeeds, but gives some weird stuff: info about content type, like for the top of a .html page, and some warnings. This is entered from an SSH terminal session. The server is a VPS system running cPanel/WHM. I'd appreciate any thoughts about what I'm doing wrong.
[user moodle]$ /path/to/php admin/cli/maintenance.php --enable
Content-type: text/html; charset=UTF-8
<br />
<b>Warning</b>: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP) in <b>/path/to/moodle/lib/clilib.php</b> on line <b>35</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/path/to/moodle/lib/clilib.php</b> on line <b>36</b><br />
Your site is currently in CLI maintenance mode, no web access is allowed.
[user moodle]$
Thanks,
Chris