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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容