Install Media Wiki on macOS

Contents

Prerequisites

{{Note|Note|I use the vi editor since nearly 30 years. Vi is the and more advanced editor and is standard on any serious Unix system. To simplify editing for less advanded users I use the more user frienly editor called nano. Searching in Nano is doen by Control-W, leaving by Control-X. Also note that a GUI editor like TextEdit can not be used with sudo.
}}
{{Note|Note| sudo allows you to work as Administrator which is required for the tasks in this instruction. }}



Activation of Apache and PHP

{{Note|Note|In earlier days Apache had a nice web page saying "It works" for Verification. On macOS Sierra the the index page seems to be empty }}

Mw-inst-001.png

to
 LoadModule php5_module libexec/apache2/libphp5.so



 sudo nano  /Library/WebServer/Documents/index.html
 Write "It works" into the file and save it (Control-X). 

On the Command line do:
 sudo apachectl restart

In a Web browser navigate to http://localhost/
Media-wiki-install-005.png

MySQL Download and Install


 macOS 10.12 (x86, 64-bit), DMG Archive

 mysql-5.7.20-macos10.12-x86_64.dmg


Media-wiki-install-001.png

Media-wiki-install-002.png


Media-wiki-install-003.png

Media-wiki-install-004.png

Create a Database

{{Note|Note|After typeing the command you have to hit the Enter key to execute the command}}
{{Note|Note| Use the mysql administrator password that was created during installation }}

  create database my_know_how;
 Query OK, 1 row affected (0.06 sec)


  create user mykh_user@localhost identified by 'meey1Ahf';
  Query OK, 0 rows affected (0.01 sec)

  grant all privileges on my_know_how.* to mykh_user@localhost;
  Query OK, 0 rows affected (0.01 sec)

Verify


 show grants for mykh_user@localhost;

+------------------------------------------------------------------------------------------------------------------+
| Grants for mykh_user@localhost                                                                                   |
+------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'mykh_user'@'localhost' IDENTIFIED BY PASSWORD '*BEB52EA48AA643D8580D58E945B3FF28D9952F2A' |
| GRANT ALL PRIVILEGES ON `my_know_how`.* TO 'mykh_user'@'localhost'                                               |
+------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

 mysql> quit
 Bye 


 mysql -u mykh_user -p
 Enter password: meey1Ahf
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 2971
 mysql> quit
 Bye


{{Note|Note|The password is not visible}}

Download Media wiki software and install



{{Note|Note|tar is a standard Posix tape archiver format which can gz means it is zipped with the gnu zip command
}}

Download


Unpack in the Webspace


http://apple.wikia.com/wiki/Install_MediaWiki_on_Mac_OS_X

Install Mediawiki


Mediawiki-setup-010.png

Mediawiki-setup-011.png
NOTE:
Mediawiki-setup-012.png
NOTE:
Mediawiki-setup-013.png
NOTE:
Mediawiki-setup-014.png

NOTE:
Mediawiki-setup-015.png

Mediawiki-setup-016.png

Post Configuration

Set an Icon


 sudo cp ~/Downloads/tux.png /Library/WebServer/Documents/my-know-how/resources/assets/
 Password:


Mediawiki-setup-017.png

Status: Published Date: 2018/01/27 20:22:29 Revision: 1.2

Copyright bei Andreas Haack (C) 2014. Diese Seite wird so wie sie ist zur Verfuegung gestellt, ohne irgenweche Garantien der Verwendbarkeit fuer bestimte Zwecke. Die auf dieser Seiten angebrachten Links liegen ausserhalb der redaktionellen Verantwortung von Andreas Haack und es wird keine Haftung oder Garantie uebernommen. Die Seiten sind Copyright (c) 2014 von Andreas Haack. Kein Teil darf ohne die schriftliche Einverstaendnis von Andreas Haack veroeffentlicht werden.
The page is provided 'as is' , without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fit- ness for a particular purpose and non-infringement. In no event shall Andreas Haack be liable for any claim, damages or other liability. This page is copyrighted property of Andreas Haack. Copyright by Andreas Haack (c) 2014 . No part of this page may be published without written permission for Andreas Haack. A hyper-link may created to this page but NOT to the embedded elements of this page. It may be freely downloaded for private purpose only as long as it is unaltered.