一·首先安装是CentOS 7.0的源。 yum install epel-release #rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

查看可安装的包 # yum list --enablerepo=remi --enablerepo=remi-php56 | grep php 开始安装 # yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

查看版本 # php --version 二·#yum list httpd 安装httpd 三·下载并解压dokuwiki程序包(去网上找源码包稳定版) wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz tar -zvxf dokuwiki-stable.tgz 把解压好的放到/var/www/html/wiki mv dokuwiki-2017-02-19e/ /var/www/html/wiki 四·修改文件夹所属用户及组 chown -R apache:apache /var/www/html/wiki 五·启动 service httpd start 六. firewall 开通80端口 检查是否开通 firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reload 七·访问网页 http://IP或者域名/wiki

过程中我遇到的错误就是 1)rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm报错 原因是没有下载rpm 使用命令是yum install rpm 2)重启的时候没有关防火墙应使用命令 systemctl stop firewalld

3)php得下载5.6 或者比5.6高的版本

4)在开通80端口时会报错FirewallD is not running 解决:1.通过systemctl status firewalld查看firewalld状态,发现当前是dead状态,即防火墙未开启 2.通过systemctl start firewalld开启防火墙,没有任何提示即开启成功。 3.再通过systemctl status firewalld查看firewalld状态,显示running即已开启了。 4.再次执行 firewall-cmd --zone=public --add-port=80/tcp --permanent 提示success,表示设置成功