网站出现Can not write to cache files解决方法
来源:互联网 发布:大富豪2手游源码 编辑:程序博客网 时间:2024/05/29 13:48
多人在迁移网站或安装网站后,会出现Can not write to cache files, please check directory ./data/ and ./data/sys的错误提示!很多人设置了777权限也不能解决,这里我来给大家说一下怎么解决这个问题!工具/原料
linux下解决方法:
工具/原料
- linux准备SSH终端连接器
- Windows准备远程桌面
linux下解决方法:
设置前,请先确认遇到如图1的问题,如果你之前看了网上的方法更改了权限,你需要先将权限设置回0755。
网站访问不需要0777权限,不能访问是所有人,所有组不正确造成的,设置方法请看后边步骤!
首先使用SSH终端连接上主机或服务器,如果自家的服务器可以直接操作,连接上后输入:
sudo su
获取管理员权限,如图中变化!
然后输入:
cd /home/wwwroot/你的网站目录名字
请注意目录变化,如果你的目录不是在这里,你可以咨询网站程序提供商!
这一步很关键,设置网站程序所有人:
chown www:www -R *
输入这条命令的意思是将网站所有人更改为www,更改好之后你的网站就又可以访问了!
阅读全文
0 0
- 网站出现Can not write to cache files解决方法
- Can not write to cache files, please check directory ./data/ and ./data/cache/ . 的解决方法
- Can not write to cache files, please check directory .data and .data/cache 处理方法
- Can not write to cache files, please check directory ./data/ and ./data/cache/ .
- Can not write to cache files, please check directory ./data/ and ./data/sysdata/ .
- 解决DISCUZ X2.5(DZ7.2)提示CAN NONT WRITE TO CACHE FILES的方法
- GPUImageMovieWrite录制MP4视频出现can't write frame解决方法
- can not write to the data/tmp folder
- can't create/write to file '/tmp/#sql_23e6_0MYI'解决方法
- mysql 出现 Can't create/write to file 的错误
- 解决MYSQL出现Can't create/write to file....
- 关于出现WARNING: unable to write jarlist cache file ...\appcompat_v7\bin\jarlist.cache 问题详解
- Can not connect to the Service chromedriver的解决方法
- Can't create/write to file 'C:\WINDOWS\TEMP\...MYSQL报错解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- Ways to write & read HDFS files
- Ubuntu16.04+cuda8.0+cudnn6.0+tensorflow(三)
- sql学习日志1
- 根据url获得domain
- Lua local
- Linux select TCP并发服务器与客户端编程
- 网站出现Can not write to cache files解决方法
- Flex布局之学习笔记一(容器属性)
- 3.作用域
- (转)Android-shareUserId作用
- Git-根据tag创建分支
- .NET Core Command-Line Tools UX Guidelines
- vue-router与setInterval的问题
- java中boolean属性的set,get方法
- Python数据抓取——多线程,异步