MediaWiki directory structure
Jump to navigation
Jump to search
The directories that the MediaWiki installation bring look like this:
/etc/mediawiki
/usr/share/doc/mediawiki
|-- docs
| |-- html
| `-- php-memcached
`-- examples
/usr/share/mediawiki
|-- includes
| |-- api
| |-- cbt
| |-- filerepo
| |-- media
| |-- normal
| |-- templates
| `-- zhtable
|-- languages
| |-- classes
| `-- messages
|-- maintenance
| |-- archives
| |-- dtrace
| |-- language
| |-- ora
| |-- postgres
| | `-- archives
| `-- storage
`-- skins
|-- chick
|-- common
| `-- images
| `-- icons
|-- disabled
|-- modern
|-- monobook
|-- myskin
`-- simple
/var/lib/mediawiki
|-- config
|-- extensions
`-- images\
As soon as you install package mediawiki-extensions, you'll also get these directories:
/etc/mediawiki-extensions
|-- extensions-available
`-- extensions-enabled
/usr/share/mediawiki-extensions/
`-- maintenance
Under Debian, the directory trees have their own specialized purpose:
- /etc/mediawiki contains the configuration files for MediaWiki
- /etc/mediawiki-extensions contains the configuration files for the MediaWiki extensions of the mediawiki-extensions package, and of all extensions that we install by hand (if we follow some simple guidelines described elsewhere in this Wiki)
- /usr/share/doc/mediawiki contains the documentation files
- /usr/share/mediawiki contains the source code. It is not used directly, rather it is linked to from the /var/lib/mediawiki directory
- /usr/share/mediawiki-extensions contains the source code for the extensions from the mediawiki-extensions package (and we'll manually install extensions there as well).
- /var/lib/mediawiki contains the site, including links to the configuration files in /etc/mediawiki