<cmstop>=cmstop安裝目錄
遍歷設置<cmstop> 用戶:<apache用戶> 用戶組:<apache用戶組>
<cmstop> |
0744 | |
<cmstop>/* | 0544 | 遍歷設置 |
<cmstop>/cmstop | 0744 | 第一次安裝時0744, 安裝完畢后0544 |
<cmstop>/install | 0744 | 安裝后刪除 |
<cmstop>/cmstop/config | 0744 | |
<cmstop>/cmstop/templates | 0744 | 遍歷設置 |
<cmstop>/img/apps | 0744 | |
<cmstop>/admin/apps | 0744 | |
<cmstop>/upload | 0744 | 遍歷設置 |
<cmstop>/about | 0744 |
如果有存在以下目錄:
<cmstop>/cmstop/data | 0744 | 遍歷設置 |
<cmstop>/ent | 0744 | 遍歷設置 |
<cmstop>/section | 0744 | 遍歷設置 |
<cmstop>/news | 0744 | 遍歷設置 |
<cmstop>/tech | 0744 | 遍歷設置 |
<cmstop>/xml | 0744 | 遍歷設置 |
用一段shell腳本來完成
HTML/XML Code復制內(nèi)容到剪貼板
- CMSTOP_DIR=<cmstop安裝目錄>
- APACHE_USER=<apache用戶id>
- APACHE_GROUP=<apache用戶組id>
- cd $CMSTOP_DIR
- chmod 0544 -R .
- chmod u+w . ./cmstop ./install ./cmstop/config ./admin/apps ./img/apps
- chmod u+w -R ./cmstop/templates
- for dir in cmstop/data ent section upload news tech about xml
- do
- if [ -d ./$dir ]; then
- chmod u+w -R ./$dir
- fi
- done
- chown $APACHE_USER:$APACHE_GROUP -R .