Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dokuwiki installation (linux)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report