centos7 安装MeidaWiki
官方文档中有详细的安装教程, 从php搭建到mysql安装
[url]https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux#Prerequisites:_Quick_Installation_of_Apache.2C_MySQL_and_PHP[/url]
[b]环境准备[/b]
[b]安装httpd php mysql, mysql可以使用官方的rpm安装[/b]
[code="shell"]
# yum inst
官方文档中有详细的安装教程, 从php搭建到mysql安装
[url]https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux#Prerequisites:_Quick_Installation_of_Apache.2C_MySQL_and_PHP[/url]
[b]环境准备[/b]
# centos7 中默认没有iptables服务, 需要安装
# yum -y install iptables-services
# 打开80端口
# vim /etc/sysconfig/iptables
# sample configuration for iptables service
# you can edit this manually or use system-config-firewall
# please do not ask us to add additional ports/services to this default configuration
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
[color=blue]-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT[/color]
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# service iptables start
# chkconfig iptables on
# 关闭 SELINUX, 不关闭的话, php无法连接mysql, 重启后生效
# getenforce
Enforcing
# vim /etc/selinux/config
# SELINUX=enforcing
SELINUX=disabled
[b]安装httpd php mysql, mysql可以使用官方的rpm安装[/b]
[code="shell"]
# yum inst