centos7 install dokuwiki

Written in front: Recently, the team needs to build a knowledge management platform. After comparison, dokuwiki is selected.

1. Download dokuwiki

First go to the following link https://download.dokuwiki.org/ to download the stable version of dokuwiki, as shown in the figure below
write picture description here

2. Unzip dokuwiki

Unzip dokuwiki and move to the /var/www/html/ directory, then change the folder access permissions

chown -R www-data:root /var/www/html/dokuwiki
chmod -R 664 /var/www/html/dokuwiki/
find /var/www/html/dokuwiki/ -type d -exec chmod 775 {} \;

3. Installation configuration

Visit http://your IP/dokuwiki/install.php in the browsing request and
you will see the following page
write picture description here

After the configuration is complete, delete install.php in the /var/www/html/dokuwiki directory.

Of course, you will see the red exclamation mark in the lower right corner of the picture, saying that something is not safe~~
For safety, the data, conf, bin, and inc folders need to be processed.
Take Nginx as an example, modify the /etc/nginx/sites-available/default file. as follows

cp /etc/nginx/sites-available/default /etc/nginx/sites-available/default.bak 
vim /etc/nginx/sites-available/default

Add the following fields to it

location ~ /(data|conf|bin|inc)/ {
      deny all;
    }

At this point, revisit http://your IP/dokuwiki to start your play~

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326667444&siteId=291194637