Centos 7 build Dokuwiki

DokuWiki is an open source wiki engine program, run under the PHP environment. Doku Wiki program compact and powerful, flexible and suitable for small teams and individuals manage the site Knowledge Base.
First configure dynamic network card and then continue with the following steps:
Here Insert Picture Description
1. Install httpd

yum install -y httpd

Here Insert Picture Description
Here Insert Picture Description
2. Start httpd

systemctl start httpd

Here Insert Picture Description
3 ... view the status
systemctl Status httpd
Here Insert Picture Description
4. Firewall open port 80 (default port)

firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload

Here Insert Picture Description
The download package and its dependencies php

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Here Insert Picture Description

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Here Insert Picture Description

yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel     安装php插件

Here Insert Picture Description
6. Restart

systemctl restart httpd

Here Insert Picture Description
7. Download

wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

Here Insert Picture Description
8. decompression

tar -zxvf dokuwiki-stable.tgz

Here Insert Picture Description
.
.
.
Here Insert Picture Description
The mobile

mv dokuwiki-2018-04-22b /var/www/html/wiki/

Here Insert Picture Description
10. give permission

chown -R apache:apache /var/www/html/wiki/

Here Insert Picture Description
11. Profiles

vim /etc/httpd/conf/httpd.conf

Here Insert Picture Description
The most added at the end of the script

 <LocationMatch "/(data|conf|bin|inc)/">        
Order allow,deny        
Deny from all        
Satisfy All        
</LocationMatch>

12. Restart

systemctl restart httpd

Here Insert Picture Description
13. Turn off the firewall

systemctl stop firewalld
setenforce 0

Here Insert Picture Description
14. Check IP

ifconfig

Here Insert Picture Description
15. Access to the web page URL column input

ip/wiki/install.php    例如:192.168.1.130/wiki/install.php

Here Insert Picture Description

Published 26 original articles · won praise 0 · Views 535

Guess you like

Origin blog.csdn.net/Butterfly0011/article/details/104923428