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?

link|improve this question

80% accept rate
feedback

3 Answers

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)
link|improve this answer
I feel pain... find mediawiki -iname extensions. – Hello71 Jul 20 '11 at 19:50
feedback

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

link|improve this answer
feedback

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

link|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 at 9:18
feedback

Your Answer

 
or
required, but never shown

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