install mediawiki under centos

title: install mediawiki under centos
date: 2015-04-29 10:46:57 +0800
comments: true
category: Linux
tags: mediawiki,linux

Requirement

  • LAMP (Linux+apache+mysql+php)

  • close PHP mbstring func_overload item

      mbstring.func_overload = 0
    
  • Mysql database setting

    • create wiki DB

        create database my_wiki default charset=utf-8;
      
    • grant privileges

        grant insert,update,delete,select on my_wiki.* to 'wiki'@'localhost' identified by 'wiki';
      

Get and Configure

## get
wget http://releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.2.tar.gz

## untar to website directory
tar -zxvf mediawiki-1.24.2.tar.gz  -C /var/www/html/mediawiki

## configure apache
<Directory "/var/www/html">
DocumentRoot "/var/www/html"

service httpd restart

Installation

access  https://your-ip/mediawiki
and install refer to the steps

and be careful to enter mysql connection with your setting

after all ,you will get a file named LocalSettings.php

put this file to mediawiki/LocalSettings.php

done

    原文作者:全栈运维
    原文地址: https://www.jianshu.com/p/c305e4db0858
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞