<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复制内容到剪贴板
- 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 .