Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently install MediaWiki on Ubuntu 10.04 using all the default settings. I'm looking to install an extension. Where is the extensions directory located by default?

share|improve this question
up vote 0 down vote accepted

You can use locate (or find) to find files or folders, like this:

locate -i mediawiki | grep -i extensions | less

  • The -i's mean "ignore case"
  • The | (vertical bar) sends the output from one command to the next command as input.
  • grep is a search tool
  • less is like the old DOS "more" command on steroids (it allows page up/down and searching)
share|improve this answer
I feel pain... find mediawiki -iname extensions. – Hello71 Jul 20 '11 at 19:50

I found my installation folder at /var/lib/mediawiki/extension. I am using Ubuntu 11.04 server.

share|improve this answer
this only works if you install mediawiki by using "sudo apt-get install" method. If you download tar ball or using svn method (not using ubuntu repository installation), the installation directory will be different and it will probably be at /var/www/mediawiki directory – Xianlin Apr 3 '12 at 9:18

The extensions directory is located under the mediawiki directory which is located under /var/www by default.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.