这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
zh:notes:install_dokuwiki [2017/04/20 16:51] pzczxs 创建 |
zh:notes:install_dokuwiki [2020/08/28 15:31] (当前版本) pzczxs [下载dokuwiki] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ======安装dokuwiki====== | + | ====== Install Dokuwiki ====== |
+ | ===== Operation System ===== | ||
+ | CentOS 5.8(64 bits) | ||
- | 系统环境:CentOS 5.8 | + | ===== Install PHP ===== |
- | + | <code bash> | |
- | -安装PHP | + | |
- | <code> | + | |
> yum list php | > yum list php | ||
> yum install php.x86_64 | > yum install php.x86_64 | ||
</code> | </code> | ||
- | -Dow | ||
+ | ===== Download dokuwiki ===== | ||
+ | Apache的默认安装路径在<color red>/var/www/html</color> | ||
+ | <code bash> | ||
+ | > 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 | ||
+ | </code> | ||
+ | |||
+ | =====设置访问权限===== | ||
+ | <code bash> | ||
+ | > 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 {} \; | ||
+ | </code> | ||
+ | |||
+ | =====修改httpd.conf文件===== | ||
+ | 在<color red>/etc/httpd/conf</color>目录下,编辑<color red>httpd.conf</color>文件 | ||
+ | <code> | ||
+ | <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> | ||
+ | </code> | ||
+ | |||
+ | =====启动===== | ||
+ | <code bash> | ||
+ | > service httpd start | ||
+ | > chkconfig --levels 235 httpd on //开机自启 | ||
+ | </code> | ||
+ | |||
+ | 访问http://localhost/dokuwiki/install.php,右上角,选择<color red>zh</color>,填写表格。然后,删除<color red>install.php</color>。 | ||
+ | <code bash> | ||
+ | > rm -f /var/www/html/dokuwiki/install.php | ||
+ | </code> | ||
+ | |||
+ | ~~DISCUSSION:closed~~ |