一、软件简介
MediaWiki是一个由充满活力的社区带给您的协作和文档平台。MediaWiki软件被成千上万的网站和数千家公司和组织使用。它为维基百科和本网站提供支持。MediaWiki可帮助您收集和组织知识并将其提供给人们。它功能强大,多语言,免费,开放,可扩展,可定制,可靠,免费。
二、安装环境
cat /etc/redhat-release
getenforce
systemctl status firewalld.service
systemctl status iptables.service
ifconfig eth0
三、安装软件包并配置数据库,下载php和apache、mariadb包
Wiki需要安装5.6及其以上版本PHP
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install httpd mariadb-server mariadb php56w php56w-xml php56w-gd php56w-mysql php56w-mbstring -y
systemctl restart mariadb.service
systemctl enable mariadb.service
systemctl restart httpd
systemctl enable httpd
mysql_secure_installation
mysql
create database mediawiki character set utf8 collate utf8_bin;
grant all privileges on mediawiki.* to mediawiki@localhost identified by 'mediawiki';
grant all privileges on mediawiki.* to mediawiki@'%' identified by 'mediawiki';
FLUSH PRIVILEGES;
SHOW DATABASES;
SHOW GRANTS FOR 'mediawiki'@'localhost';
systemctl enable mariadb
systemctl enable httpd
四、上传mediawiki的安装包/var/www/html/mediawiki,并授权apache
tar xf mediawiki-1.30.0.tar.gz
chown -R apache.apache /var/www/html/mediawiki/*
五、浏览器访问:http://10.0.0.75/mediawiki
















网友评论