Mediawiki/Installing/CentOS7

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Installing | Multiple Instances | Ubuntu Installation | [[Mediawiki/Installing/CentOS7...")
 
Line 1: Line 1:
 
[[Mediawiki/Installing|Installing]] | [[Mediawiki/MultipleInstances|Multiple Instances]] | [[Mediawiki/Installing/Ubuntu|Ubuntu Installation]] | [[Mediawiki/Installing/CentOS7|CentOS7 Installation]]
 
[[Mediawiki/Installing|Installing]] | [[Mediawiki/MultipleInstances|Multiple Instances]] | [[Mediawiki/Installing/Ubuntu|Ubuntu Installation]] | [[Mediawiki/Installing/CentOS7|CentOS7 Installation]]
 +
 +
=Overview=
 +
Installing Mediawiki 1.33 on CentOS7 as of 8/21/2019.
 +
 +
=Requirements=
 +
[https://www.mediawiki.org/wiki/Manual:Installation_guide Documented here.]<br>
 +
*Mediawiki 1.33
 +
*Apache httpd webserver
 +
*PHP 7.0.13
 +
*MySQL 5.5.8
 +
You will also want to make sure your Centos instance is accessible by hostname, either publishing a DNS A record or updating your local hosts file.  This needs to be done as Apache HTTPD will parse the http request and look at the servername submitted by the browser.  if you use the IP address, the server name in the http request will be the IP, not the hostname.  Combine that with the HTTPD conf file with a servername entry as the Hostname, you can see the issue.  '''NOTE:''' ''Yes, you can implement the ServerName in the httpd config as the IP address, however that is not what normal production servers do, so i generally avoid these practices.''
 +
 +
=Operating System Basics=
 +
Skip this if needed.
 +
 +
==Create user==
 +
Create a new user, give them a home directory, and add them to the '''wheel''' group which by default in centos gives sudo access.  After, change the password.
 +
<nowiki>~$ useradd wikiuser -d /home/wikiuser -G wheel
 +
~$ passwd wikiuser</nowiki>
 +
 +
==Update system==
 +
<nowiki>~$ sudo yum upgrade -y</nowiki>
 +
 +
==Install basic packages==
 +
<nowiki>~$ sudo yum install -y telnet net-tools vim tcpdump bind-utils redhat-lsb-core wget nfs-utils policycoreutils-python setroubleshoot setools </nowiki>
 +
For an explanation of each package, look at: [[Oracle_Linux/Quick_Reference#Common_packages_to_install_on_fresh_.28minimal.29_install|Common Packages]]

Revision as of 23:11, 21 August 2019

Installing | Multiple Instances | Ubuntu Installation | CentOS7 Installation

Contents

Overview

Installing Mediawiki 1.33 on CentOS7 as of 8/21/2019.

Requirements

Documented here.

  • Mediawiki 1.33
  • Apache httpd webserver
  • PHP 7.0.13
  • MySQL 5.5.8

You will also want to make sure your Centos instance is accessible by hostname, either publishing a DNS A record or updating your local hosts file. This needs to be done as Apache HTTPD will parse the http request and look at the servername submitted by the browser. if you use the IP address, the server name in the http request will be the IP, not the hostname. Combine that with the HTTPD conf file with a servername entry as the Hostname, you can see the issue. NOTE: Yes, you can implement the ServerName in the httpd config as the IP address, however that is not what normal production servers do, so i generally avoid these practices.

Operating System Basics

Skip this if needed.

Create user

Create a new user, give them a home directory, and add them to the wheel group which by default in centos gives sudo access. After, change the password.

~$ useradd wikiuser -d /home/wikiuser -G wheel
~$ passwd wikiuser

Update system

~$ sudo yum upgrade -y

Install basic packages

~$ sudo yum install -y telnet net-tools vim tcpdump bind-utils redhat-lsb-core wget nfs-utils policycoreutils-python setroubleshoot setools 

For an explanation of each package, look at: Common Packages

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