Dokuwiki AnSo (linux)

Dokuwiki installation (linux)
I. Introduction
dokuwiki is an open source wiki engine program, run under the PHP environment. No database. Doku Wiki program compact and powerful, flexible and suitable for small teams and individuals manage the site Knowledge Base.
Two installation steps:
1. Before installing the need to ensure that the following components have been installed dependence

yum install gcc-c++
yum install make
yum install expat-devel
yum install perl
yum install curl-devel
yum install libxml2-devel
yum install libjpeg-devel
yum install libpng-devel
yum install freetype-devel

2. As dokuwiki requires PHP environment, it is first installed PHP

# yum install epel-release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi

# 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

Success.

    # php -v

PHP 5.6.40 (cli) (built: Jul  3 2019 06:59:29) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

3.dokuwiki also requires Apache service, it needs to install httpd

yum install httpd

systemctl start httpd

4. Then install dokuwiki, dokuwiki linux and Windows is no points, so the installation can be downloaded under their own re-import a virtual machine, or you can directly execute the following command

#wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz //下载网站安装压缩包
#tar -zvxf dokuwiki-stable.tgz //解包解压缩
#cp -r dokuwiki-2017-02-19e /var/www/html/wiki //复制解压的网站源码文件到网站根目录

5. Change httpd.conf

vim /etc/httpd/conf/httpd.conf

The changes to the DocumentRoot path at step 4 dokuwiki defaults to / var / www / html
configuration action following is a URL filtering to ensure data security

<LocationMatch "/(data|conf|bin|inc)/">

Order allow,deny

Deny from all

Satisfy All

</LocationMatch>

6. modify permissions
modified according to the following two configuration values httpd.conf

User apache
Group apache

Do not modify the permissions to access the page will cause the following error

#chown -R apache.apache /var/www/html/wiki//将文件所有者由root用户
改为apache用户

7. Adjust the Apache mime setting, so that Apache can support PHP (/etc/mime.types), added in the configuration

application/x-httpd-php php php4 phtml
application/x-httpd-php-source phps

Restart

systemctl restart httpd

8. Turn off the firewall

 setenforce 0
 systemctl stop firewalld

9. Visit the website ip / wiki / install.php

Guess you like

Origin blog.51cto.com/14259167/2420950