1。基礎元件安裝
yum install wget vim gcc-c++ make expat-devel perl curl-devel libxml2-devel libjpeg-devel libpng-devel freetype-devel
2。配置epel和remi源
wget -O /etc/yum。repos。d/epel。repo http://mirrors。aliyun。com/repo/epel-7。reporpm -ivh http://rpms。famillecollet。com/enterprise/remi-release-7。rpm
3。安裝php5。6
yum install ——enablerepo=remi ——enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-xml
4。安裝httpd
yum install httpd -ychown -R apache。apache /var/www/html/
調整Apache mime設定,讓Apache 可以支援 PHP (/etc/mime。types ) ,在配置中加入
application/x-httpd-php php php4 phtmlapplication/x-httpd-php-source phps
systemctl restart httpd。
5。安裝dokuwiki
tar -xzvf dokuwiki-7f2a0e427ff9bc5078571f8c643f2c33。tgzcd dokuwikicp -r 。/* /var/www/htmlchown -R apache。apache /var/www/html/
訪問本機IP網址進行安裝
http://192。168。1。100/install。php
填寫管理員資訊
配置完成,開啟DokuWiki
進入DokuWiki主介面,登入管理員賬號可以配置了
至此DokuWiki系統就安裝完成了