这是本文档旧的修订版!
CentOS 5.8(64 bits)
> yum list php > yum install php.x86_64
Apache的默认安装路径在/var/www/html
> wget -P /var/www/html/ https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz > cd /var/www/html > tar zxvf dokuwiki-stable.tgz > mv dokuwiki-2017-02-19b dokuwiki
> chown -R apache:root /var/www/html/dokuwiki > chmod -R 664 /var/www/html/dokuwiki/ > find /var/www/html/dokuwiki/ -type d -exec chmod 775 {} \;
在/etc/httpd/conf目录下,编辑httpd.conf文件
<Directory /var/www/html/dokuwiki> order deny,allow allow from all </Directory> <LocationMatch "/dokuwiki/(data|conf|bin|inc)/"> order allow,deny deny from all satisfy all </LocationMatch>
> service httpd start > chkconfig --levels 235 httpd on //开机自启
访问http://localhost/dokuwiki/install.php,右上角,选择zh,填写表格。然后,删除install.php。
> rm -f /var/www/html/dokuwiki/install.php
评论