ubuntu16.04+apache+dokuwiki

2021-05-26  本文已影响0人  fanzhouyuanhang

#1、安装apache

apt-get install apache2

#2、安装php和相应模块

sudo apt-get install php7 php7.0-fpm php7.0-cli php-apcu php7.0-gd php7.0-xml php7.0-curl php7.0-json php7.0-mcrypt php7.0-cgi php7.0 libapache2-mod-php7.0 libapache2-mod-php

#3、下载和解压dokuwiki

wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

mv dokuwiki-2018-04-22a/ dokuwiki

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 {} \;

#4安装配置

#进入http://IP/dokuwiki/install.php进行网页配置

rm -rf /var/www/html/dokuwiki/install.php

#5、/etc/apache2/apache2.conf文件,在最后面加入

<Directory /var/www/html/dokuwiki>

        order deny,allow

        allow from all

</Directory>

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

        order allow,deny

        deny from all

        satisfy all

</LocationMatch>

#6、界面汉化,wiki的初始页面为英文版,点击右上角admin用户,在Configuration Settings中 进行设置。将interface language改为zh,保存即可。如下图所示。

#7、重启apache

systemctl restart apache2.service

上一篇下一篇

猜你喜欢

热点阅读