Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dokuwiki installation (linux)

Shulou Source: shulou.com Published: 2022-06-03 09:31:55 12月06日 Update

Dokuwiki installation (linux)

one。 Brief introduction

Dokuwiki is an open source wiki engine program that runs in the PHP environment. No database is required. The Doku Wiki program is small, powerful and flexible, and is suitable for the management of the knowledge base of small and medium-sized teams and individual websites.

two。 Installation steps:

1. You need to ensure that the following dependent components are installed before installation

Yum install gcc-c++yum install makeyum install expat-develyum install perlyum install curl-develyum install libxml2-develyum install libjpeg-develyum install libpng-develyum install freetype-devel

two。 Since dokuwiki requires a PHP environment, PHP must be installed first.

# 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

Succeed.

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

3.dokuwiki also needs Apache service, so httpd needs to be installed.

Yum install httpdsystemctl start httpd

4. Then there is no distinction between linux and Windows when installing dokuwiki,dokuwiki, so you can download it and import it into the virtual machine during installation, or you can execute the following command directly

# wget-c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz / / download website installation package # tar-zvxf dokuwiki-stable.tgz / / unpack and decompress # cp-r dokuwiki-2017-02-19e / var/www/html/wiki / / copy the extracted website source files to the root of the website

5. Change httpd.conf

Vim / etc/httpd/conf/httpd.conf

Change the DocumentRoot directory to the dokuwiki path in step 4 and default to / var/www/html

The following configuration is used to filter URL to ensure data security

Order allow,denyDeny from allSatisfy All

6. Modify permissions

Modify according to the following two configuration values in httpd.conf

User apacheGroup apache

Failure to modify permissions will cause the following access page to report an error

# chown-R apache.apache / var/www/html/wiki// changes the file owner from root to apache

7. Adjust the Apache mime setting so that Apache can support PHP (/ etc/mime.types), and add to the configuration

Application/x-httpd-php php php4 phtmlapplication/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

Tags: Websites configurations data files permissions environment users programs small powerful secure successful download sites two personal websites small and medium-sized functional functional powerful Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker Linux Apple vpn