dokuwiki的安装
作者:互联网
安装dokuwiki
安装dokuwiki需要有Apache和PHP7.0
1.先下载Apache
yum install -y httpd
查看Apache的运行状态
systemctl status httpd
运行Apache,再查看一下他的进程看他是否正在运行
systemctl start httpd
修改他的默认端口,成功后他下面会出现success
irewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
如果出现 “firewalld is not runing ”这是说明防火墙关闭了,可以选择打开防火墙
systemctl start firewalld
apache就安装完了
2.PHP安装
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel
报出来一堆东西咱也看不懂,咱也不敢问就打个echo $?看看他有没有报错
再重新启动一下Apache
systemctl restart httpd
3.下载dokuwiki
先下载他的压缩包
wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
解压
tar -zxvf dokuwiki-stable.tgz
移动
mkdir /var/www/html/
mv /dokuwiki-2018-04-22b/* /var/www/html/wiki/
去到var/www/html/wiki/下然后修改权限
chown -R apache:apache /var/www/html/wiki/
修改配置文件/etc/httpd/conf/httpd.conf
再重启一下Apache
systemctl restart httpd
关闭防火墙
systemctl stop firewalld
setenforce 0
标签:httpd,www,dokuwiki,systemctl,php70w,Apache,安装 来源: https://blog.51cto.com/14375779/2420567