Retrieve server info from external source
From MediaWiki extension testing
The specific information of the server (LAMP, MediaWiki version etc.) has to be retrieved from the server without the need to have access to the server itself. The server information needs to be as minimum as possible. But also any server setting which might influence the behaviour of the extension should be retrieved. With this info a different behaviour in different environment can be easily determined.
MediaWiki-api does allow good external access to this server info.
Most of the information you'll need is available from api.php?action=query&meta=siteinfo&siprop=general|extensions. Only the Linux version is missing here; it's easy to add but requires approval of a MediaWiki senior developer.