linux安装dokuwiki

tech2023-08-14  95

基础环境:(确认是否安装)

yum install gcc-c++ yum install make yum install expat-devel yum install perl yum install curl-devel yum install libxml2-devel yum install libjpeg-devel yum install libpng-devel yum install freetype-devel

一.安装php

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum install php70w

二.安装dokuwiki

wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz tar -zvxf dokuwiki-stable.tgz cp -r dokuwiki-2017-02-19e /var/www/html/wiki /

三.安装httpd:

1.yum安装:

yum install httpd

2.修改配置文件

vim /etc/httpd/conf/httpd.conf

设置端口:(先确认该端口是否被占用)

加入下列配置对URL进行过滤:

<LocationMatch "/(data|conf|bin|inc)/"> Order allow,deny Deny from all Satisfy All </LocationMatch>

添加php格式文件打开支持:

启动:

systemctl start httpd

3.设置目录权限:

chown -R apache:apache /var/www/html/wiki/

四.打开页面:

http://10.60.136.193:8021/wik

 

五.遇到的问题:

1>Could not reliably determine the server's fully qualified domain name

分析:配置文件没有设置相应的解析域名和端口

解决:修改配置文件,去掉注释

vim /etc/httpd/conf/httpd.conf

2>(98)Address already in use: AH00072: make_sock: could not bind to 

分析:端口被占用

解决:

1.找到占用该端口的进程,直接kill干掉

ps -aux |grep port kill -9 pid

2.在配置文件更换端口

3>(28)No space left on device: AH00023: Couldn't create the rewrite-map mutex AH00016: Configuration Failed

分析:因为linux系统的ipc信号量造成的,apache启动时,会创建很多子进程。他们是通过信号量来和子进程进行通信的,导致没有更多资源去写

解决:

ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'

4.>部署完最终打开php页面变成文件下载

分析:

1.httpd配置文件没添加相关支持

2.php安装失败或者版本太低

 

最新回复(0)