目录

CentOS7 安装

安装配置网卡

HWADDR=B8:2A:72:DE:6C:61
TYPE=Ethernet
BOOTPROTO=NONE
IPV4_FAILURE_FATAL=no
IPADDR=10.92.3.180
NETMASK=255.255.255.0
GATEWAY=10.92.3.1
DNS1=202.96.209.5
IPV6INIT=no
NAME=em1
UUID=ddde5a62-8f56-45c2-9a93-9c1756f6f185
ONBOOT=yes
DEVICE=em1

抓取备份文件

   19  wget http://10.107.0.71/backup/wiki_bak.pl
   20  wget http://10.107.0.71/backup/wiki_monthly.pl
   21  wget http://10.107.0.71/backup/wiki.pl
   29  wget http://phylab.fudan.edu.cn/lib/exe/fetch.php?media=activity:training:2014:dokuwiki-stable.tgz
   55  wget http://10.107.0.71/backup/phy_wiki.tgz &

安装盘mount 和 dump

检查httpd 和 php

Alias /backup5 "/backup"

<VirtualHost *:80>
    ServerAdmin webmaster@phylab.fudan.edu.cn
#    DocumentRoot /var/www/phylab
#    DocumentRoot /backup/phylab
        DocumentRoot /home/whyx/phylab

    ServerName phylab.fudan.edu.cn

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

    ErrorLog logs/host.phylab-error_log
    CustomLog logs/host.phylab-access_log common
</VirtualHost>

SELinux

#SELINUX=enforcing
SELINUX=disabled

iptables 改成firewall-cmd 了。。

CentOS 7 is using firewalld now!

Example:

firewall-cmd --zone=public --add-port=3000/tcp --permanent

reload rules:

firewall-cmd --reload

调试dokuwiki

wiki模板配置等

; site and sidebar widths
;__site_width__      = "75em"            ; @ini_site_width
__site_width__      = "100%"            ; @ini_site_width

关于标题下面的下划线设置

/* general headline setup */
div.dokuwiki h1,
div.dokuwiki h2,
div.dokuwiki h3,
div.dokuwiki h4,
div.dokuwiki h5 {
    color: __text__;
    background-color: inherit;
    font-size: 100%;
    font-weight: normal;
    margin: 0 0 1em 0;
    padding: 0.5em 0 0 0;
    border-bottom: 1px solid __border__;
    clear: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
;    padding: 0;
    line-height: 1.2;
    padding: 0.5em 0 0 0;
    border-bottom: 1px solid __border__;
    clear: left; /* ideally 'both', but problems with toc */
}
    padding: 0.5em 0 0 0;
    border-bottom: 1px solid __border__;
[whyx@localhost dokuwiki]$ vi tpl_header.php

    <div class="headings group">
        <ul class="a11y skip">
            <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
        </ul>

        <h1><?php
            // get logo either out of the template images folder or data/media folder
            $logoSize = array();
           // $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);

            // display logo and wiki title in a link to the home page
            tpl_link(
                wl(),
                '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>',
                'accesskey="h" title="[H]"'
            );
        ?></h1>