5

I am presently using Ubuntu 16.04 LTS and I want to install Mediawiki.I followed below link commands but it showing as 'mediawiki' has no installation candidate. You can see it on picture. https://help.ubuntu.com/community/MediaWiki enter image description here

  • 3
    Please don't post screenshots of text. Copy the text here and apply code formatting. – muru Nov 8 '16 at 6:28
  • What is your end goal here? A private MediaWiki instance running on localhost? – Kaz Wolfe Nov 8 '16 at 6:38
  • Yes, I want to run on localhost. – Rindhu Kondaparthy Nov 8 '16 at 6:41
  • Hey, I've looked through your profile and I've noticed you got some good answers, but haven't accepted anything. If an answer to any of your questions solved your problem, hit the grey checkmark by that answer. It'll turn green, and the answer will be marked "accepted", which gives you some reputation and lets others find the solution faster. – Kaz Wolfe Nov 9 '16 at 17:39
7

The mediawiki package is no longer in the Ubuntu repository for 16.04 for a number of reasons, so we're left with having to install it manually.

Your webserver is configured to serve to port 80 on localhost right now, with content from /var/www/html. So, if we just install MediaWiki there, it'll be good enough.

Essentially you're just going to need to cd over to that directory and download the latest version using the following command:

wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz

Then, we can extract this archive:

tar xvf mediawiki-1.27.1.tar.gz

From there, you can just navigate to http://localhost/mediawiki-1.27.1/ in your browser and then follow the instructions given there to set it up. If you prefer, you can rename the folder to just mediawiki if it makes it easier on you.

| improve this answer | |
  • 1
    You will also need to install PHP, MySQL and a number of PHP modules, and enable them, e.g. apt-get install mysql-server libapache2-mod-php7.0 php-apcu php-gd php-json php-mysql php-xml; phpenmod apcu gd json pdo_mysql dom; a2enmod php7.0 – Stuart Caie Nov 8 '16 at 11:43
  • okay, Now i want to use Mediawiki web page to save my personal files. I created an account in Mediawiki. How can i change my privacy. No one have to see my personal data. – Rindhu Kondaparthy Nov 9 '16 at 11:06
  • @RindhuKondaparthy If you're running on localhost on a private server and port 80 isn't opened to LAN, it's only accessible to your network as a whole. If you want to have only your local computer access it, you can probably just block port 80 inbound using ufw. – Kaz Wolfe Nov 9 '16 at 17:37
  • Could you please explain a little more, or provide a link, to the "number of reasons" why the mediawiki package is no longer in the Ubuntu repository for 16.04. Very interesting, thanks! – Jeff Puckett Nov 25 '16 at 5:02
0

A newer version of MekiaWiki is available in 16.10 and you can follow the instructions here to install on 16.04. Note however that "mediawiki_1.27.0-1." are now "mediawiki_1.27.1-2" at this time.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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