Mediawiki/Installing/Ubuntu

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 50: Line 50:
 
  +---------------------------------------------------------------------------------------------------------------+
 
  +---------------------------------------------------------------------------------------------------------------+
 
  1 row in set (0.00 sec)
 
  1 row in set (0.00 sec)
 +
==download mediawiki and verify==
 +
http://www.mediawiki.org/wiki/Download
 +
http://da44en.wordpress.com/2004/08/16/practical-gnupg/
 +
mediawiki
 +
~$ wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz
 +
gpg signature
 +
~$ wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz.sig
 +
gpg keys
 +
~$ wget wget https://www.mediawiki.org/keys/keys.txt
 +
import keys
 +
~$ gpg --import keys.txt
 +
verify file with detached sig
 +
~$ gpg --verify mediawiki-1.22.6.tar.gz.sig mediawiki-1.22.6.tar.gz
 +
gpg: Signature made Thu 24 Apr 2014 07:42:22 PM EDT using RSA key ID 7F901A30
 +
gpg: Good signature from "Mark A. Hershberger <[email protected]>"
 +
gpg: WARNING: This key is not certified with a trusted signature!
 +
gpg:          There is no indication that the signature belongs to the owner.
 +
Primary key fingerprint: 3CEF 8262 806D 3F0B 6BA1  DBDD 7956 EE47 7F90 1A30
 +
This means the file was verified successfully
 +
gpg: Good signature from "Mark A. Hershberger <[email protected]>"

Revision as of 21:19, 11 October 2014

Installing | Multiple Instances | Ubuntu Installation

Contents

Installation Overview

All of the instructions below were done on Ubuntu 14.04 LTS

Install required packages

Below is a list of all the packages required by Mediawiki for installation on Ubuntu.

~$ sudo apt-get update && sudo apt-get install apache2 mysql-server php5 php5-mysql libapache2-mod-php5 ImageMagick

Alternatively, if you think you have already installed some of the packages, you can quickly check

~$ dpkg -s [package name] | grep Status
ie. ~$ dpkg -s imagemagick | grep Status
     Status: install ok installed

setup mysql

make sure mysql is started

~$ sudo service mysqld status
or
~$ sudo service mysqld start

setup the basics

~$ sudo mysql_secure_installation
Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

login to db

~$ mysql -u root -p

Create mysql wiki user

~$ mysql> CREATE USER 'wiki'@'localhost' IDENTIFIED BY 'THISpasswordSHOULDbeCHANGED';
~$ mysql> exit

login as new user to verify account works

~$ mysql -u wiki -p
~$ mysql> exit

create DB

~$ mysql -u root -p
~$ mysql> CREATE DATABASE sewikidatabase;

verify DB creation

~$ mysql> SHOW DATABASES;

assign rights to wiki user for new database created

~$ mysql> GRANT ALL PRIVILEGES ON sewikidatabase.* TO 'wiki'@'localhost' IDENTIFIED BY 'wikiuserpassword' WITH GRANT OPTION;
~$ mysql> exit

verify permissions have been granted

~$ mysql -u wiki -p
~$ mysql> SHOW GRANTS;
+---------------------------------------------------------------------------------------------------------------+
| Grants for wiki@localhost                                                                                   |
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'wiki'@'localhost' IDENTIFIED BY PASSWORD '*2K21458K438UYE85A38B9Y7Y78DAEBF4T8689YK4' |
| GRANT ALL PRIVILEGES ON `sewikidatabase`.* TO 'wiki'@'localhost' WITH GRANT OPTION                          |
+---------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

download mediawiki and verify

http://www.mediawiki.org/wiki/Download http://da44en.wordpress.com/2004/08/16/practical-gnupg/ mediawiki

~$ wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz

gpg signature

~$ wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz.sig

gpg keys

~$ wget wget https://www.mediawiki.org/keys/keys.txt

import keys

~$ gpg --import keys.txt

verify file with detached sig

~$ gpg --verify mediawiki-1.22.6.tar.gz.sig mediawiki-1.22.6.tar.gz
gpg: Signature made Thu 24 Apr 2014 07:42:22 PM EDT using RSA key ID 7F901A30
gpg: Good signature from "Mark A. Hershberger <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 3CEF 8262 806D 3F0B 6BA1  DBDD 7956 EE47 7F90 1A30

This means the file was verified successfully

gpg: Good signature from "Mark A. Hershberger <[email protected]>"
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Open Source Products
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox