refs #6013 use console only if executed from cli
refs #6013 #6012 make sure not to call console in case PHP is type CGI. In type CGI the argv should not be registered anyway unless maybe for instance register-argc-argv is enabled
Merge pull request #6016 from piwik/6013_useConsoleOnlyIfCli

refs #6013 use console only if executed from cli