127.0.0.1/dokuwiki/install.php,DokuWiki安装+集成markdown编辑器editor.md
安装
安装php和nginx yum install -y php70w php70w-gd php70w-xml php70w-fpm nginx
开机自启动 systemctl enable nginx php-fpm
配置nginx
server {
listen 80;
server_name localhost;
# Maximum file upload size is 4MB - change accordingly if needed
client_max_body_size 4M;
client_body_buffer_size 128k;
root /dokuwiki;
index doku.php;
#Remember to comment the below out when you're installing, and uncomment it when done.
location ~ /(conf/|bin/|inc/|install.php) { deny all; }
#Support for X-Accel-Redirect
location ~ ^/data/ { internal ; }
location ~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg)$ {
expires 365d;
}
location / { try_files $uri $uri/ @dokuwiki; }
location @dokuwiki {
# rewrites "doku.php/" out of the URLs if you set the userwrite setting to .htaccess in dokuwiki config page
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/(.*) /doku.php?id=$1&$args last;
}
location ~ \.php$ {
try_files $uri $uri/ /doku.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_pass 127.0.0.1:9000;
}
}
启动nginx和php-fpm systemctl start php-fpm nginx
在网站一栏输入:http://你的ip地址/install.php 在右上角选好语言,简体中文zh,按照提示安装即可。如果打开页面保存,请修改conf、data、lib目前的权限。
安装插件
新增页面Add New Page插件
Markdown插件Markdown Page Plugin
侧边栏
安装Indexmenu Plugin插件
新建data\pages\sidebar.txt,内容如下:
===== 导航目录 =====
{{indexmenu>..|navbar}}
===== 添加新页面 =====
{{NEWPAGE}}
中文文件名乱码
修改dokuwiki/conf/local.php在最后一行加上:
$conf['fnencode']='utf-8';
127.0.0.1/dokuwiki/install.php,DokuWiki安装+集成markdown编辑器editor.md相关推荐
- MariaDB: ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111 Connection refused)
MariaDB : ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111 "Connection ref ...
- ubuntu之sudo apt-get update提示Could not connect to 127.0.0.1:8081 (127.0.0.1)解决办法
1.问题 由于要使用Git,需要执行 sudo apt-get install git 但是执行之前我需要先 sudo apt-get update 麻痹的,当我执行这个的时候错误提示如下 Could ...
- 报错curl: (7) Failed to connect to 127.0.0.1 port xxxx: Connection refused
(pyenv install xxx) 报错curl: (7) Failed to connect to 127.0.0.1 port xxxx: Connection refused的解决方法 问题 ...
- linux telnet 127.0.0.1 不通,Linux 出现telnet: 127.0.0.1: Connection refused错误解决办法
Linux 出现telnet: 127.0.0.1: Connection refused错误解决办法 Linux 出现telnet: connect to address 127.0.0.1: Co ...
- idea运行springboot出现 Disconnected from the target VM, address: ‘127.0.0.1:xxxx‘, transport: ‘socket‘
idea运行springboot出现 Disconnected from the target VM, address: '127.0.0.1:xxxx', transport: 'socket' 1 ...
- 安装RabbitMQ时出现Plugin configuration unchanged,RabbitMQ服务启动几秒后自动关闭, http://127.0.0.1:15672/页面无法访问一并解答
1.正常情况下的安装步骤 注意在官网安装时,尽量安装新版本,老旧版本会导致各种问题 官网下载地址:http://www.rabbitmq.com/download.html https://www.r ...
- 127.0.0.1 zxt.php_shmilyzxt/
README A yii2 extension to make simple to use queue. yii2-queue让队列的使用在yii2中变得更轻松,她为各种队列组件的使用提供了一个标准的 ...
- nginx 代理127.0.0.1的端口
前言: 本文是以ubuntu20.04做的实验,centos下基本类似 1.安装nginx 服务 apt install nginx -y 2 修改nginx.conf配置文件 # 进入nginx目录 ...
- Redis Cluster [WARNING] Node 127.0.0.1:7003 has slots in migrating state (15495).
错误描述 在迁移一个节点上的slot到另一个节点的时候卡在其中的一个slot报错,截图如下: 查询发现在15495的这个slot上面存在一个key,但是并没有发现这个key有什么问题.使用fix进行修 ...
最新文章
- 02-requests模块的概述
- openssl简介-指令s_client
- 《Linux内核设计与实现》读书笔记(十二)- 内存管理
- 2007基于循环链表的队列的基本操作(C++)
- deprecated conversion from string constant to ‘char*’
- HDU2030 汉字统计【文本处理】
- java 成绩单_java中用if做成绩单
- 华为宣布了,鸿蒙 OS 2.0 开放源代码
- idea配置阿里格式化模板+注释模板
- JSP无法加载静态资源:Failed to load resource: the server responded with a status of 404 ()
- 本地java源代码上传码云
- 基于QT+ffmpeg+SDL2的流媒体播放器
- 【秒杀】一、系统设计要点,从卖病鹅说起
- vue前端使用jsencrypt RSA 加解密插件
- html写出带有表格标题的三行三列表格
- C#应用程序与MATLAB联合编程
- 【Pandas】解析resample函数中重采样频率‘freq‘用法(附参数说明表)
- Robust Definition
- live555源码分析(四)RTSPServer分析
- Vue国际区号组件开发(目前已经发布到npm)