Linux最小化 安裝dokuwiki

Linux最小化安裝網絡配置


配置網絡ip

1. vi /etc/sysconfig/network-scripts/ifcfg-ens33(將選中的部分改爲yes)

Linux最小化     安裝dokuwiki

2. 保存退出並重啓網絡

    service network restart

Linux最小化     安裝dokuwiki

3.最小化安裝沒有ifconfig
   要用ip addr查看ip地址

Linux最小化     安裝dokuwiki

ssh連接到MobaXterm

Linux最小化     安裝dokuwiki

下載dokuwiki前安裝必要工具


安裝vim

yum -y install vim

Linux最小化     安裝dokuwiki

安裝wget

yum -y install wget

Linux最小化     安裝dokuwiki

安裝net-tools(已安裝過)

Linux最小化     安裝dokuwiki

安裝 curl

Linux最小化     安裝dokuwiki

下載安裝dokuwiki(PHP7)


一.安裝apache

1.yum安裝apache 2.4

# yum install -y httpd

Linux最小化     安裝dokuwiki

2.安裝完成,檢查下apache服務狀態,剛安裝完是關閉的,需要啓動apache
# systemctl status httpd

Linux最小化     安裝dokuwiki

#systemctl start httpd

3.防火牆開啓80端口(默認端口)

18年開始,域名需要備案,過程有點小煩,如果急於域名測試站點,會比較頭大。修改http默認的端口可以繞過域名備案。

#firewall-cmd --add-port=80/tcp --permanent

#firewall-cmd --reload

Linux最小化     安裝dokuwiki

二.安裝PHP7

1.安裝php7以及擴展

#rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Linux最小化     安裝dokuwiki

#rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Linux最小化     安裝dokuwiki

#yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel

Linux最小化     安裝dokuwiki

#systemctl restart httpd(重新啓動httpd)

三.下載dokuwiki

下載dokuwiki解壓到http跟目錄下

wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz //下載網站安裝壓縮包

Linux最小化     安裝dokuwiki
#tar -xzvf dokuwiki-stable.tgz
Linux最小化     安裝dokuwiki

#mv dokuwiki-2018-04-22b/ /var/www/html/wiki/

dokuwiki系統環境配置

更改wiki目錄權限,修改目錄下文件的group和user (group和user要根據apache配置文件httpd.conf來)

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

apache配置文件控制目錄不可訪問:

#vim /etc/httpd/conf/httpd.conf (或使用vi)

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

Linux最小化     安裝dokuwiki

#systemctl restart httpd

安裝wiki

 關閉防火牆
 systemctl stop firewalld.service
 setenforce 0

進入 瀏覽器,進入url:【域名(IP)/wiki/install.php】,打開安裝頁面

Linux最小化     安裝dokuwiki

在頁面上設置wiki站點語言、定義站點名稱、創建管理員等

Linux最小化     安裝dokuwiki

點擊“保存”後,即開始安裝,完成就進入新建的dokuwiki站點了

Linux最小化     安裝dokuwiki

在服務器上刪除 install.php文件

Linux最小化     安裝dokuwiki

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章