Extension:Cargo/Download and installation

You can download Cargo, and view the code, at https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FCargo.

Once you have the code set up, Cargo has two database tables in the main database that it requires. You will need to set these up by going to MediaWiki's /maintenance directory and calling the following:

php update.php

Finally, you need to make sure that the database account with which the code accesses the database has the ability to both create and drop tables. This may or may not be the standard MediaWiki database account; see below.

Setting the Cargo database
By default, Cargo uses the standard MediaWiki database to hold its data; though the DB tables it uses all start with "cargo_". You can change this to have Cargo use any other database. Cargo has the following global settings that can be used for that:
 * $wgCargoDBtype
 * $wgCargoDBserver
 * $wgCargoDBname
 * $wgCargoDBuser
 * $wgCargoDBpassword

These are set in the same way as their non-Cargo equivalents, which can be found in LocalSettings.php. To set this custom database, add lines for those five variables to LocalSettings.php, under the inclusion of Cargo.