I got over the POST error by setting the "require_once" command in the LocalSettings.php file AFTER the variable settings.
Here is the relevant part of LocalSettings.php
# Collection
$wgCollectionFormats = array(
'rl' => 'PDF', # enabled by default
# 'odf' => 'ODT',
# 'docbook' => 'DocBook XML',
# 'xhtml' => 'XHTML 1.0 Transitional',
# 'epub' => 'e-book (EPUB)',
# 'zim' => 'Kiwix (OpenZIM)',
);
$wgEnableApi = true;
$wgCollectionMWServeCredentials = 'Shadi Akiki:****'; # password instead of ****
$wgCollectionMWServeURL = '
0.0.0.0:8899';
$wgCollectionContentTypeToFilename = array(
'application/pdf' => 'collection.pdf',
# 'application/vnd.oasis.opendocument.text' => 'collection.odt',
);
require_once("$IP/extensions/Collection/Collection.php");