Hello! On some shared hostings Pygments can't be run because the shell execution was limited by "security" reasons and I can't enable it. However, I have built my own workaround which turns Pygments into CGI-BIN application I can run via HTTP.
It's the patch to SyntaxHighlight.php which adds the flag $wgPygmentsUseCgiProxy. When you'll set it into true, the wgPygmentizePath will be interpreted as HTTP link and will be executed via cURL.
It's the CGI script which will execute Pygments and will forward input data into it, and will return back the result.
Latest patchset is here: https://gerrit.wikimedia.org/r/538404