failed to open stream: Permission denied in
2014-12-09 01:37
501 查看
最近在做一个Web2.0的项目,需要用到XML作为数据库来处理数据,然后我用php写的,结果就是出现了这个错误!快把我搞疯了啊!!!
后来我想,其实就是权限不足,但是我认为那个eclipse【我使用eclipse开发】的workspace我给了777的权限啊,怎么会有这种情况呢?没办法,只得烦自己之前的工作记录,然后问题就来了,我在终端输入的命令是
sudo chmod 777 /home/***/Documents/workspace
所以在它下面依旧有文件不能读取和写入
那么怎么办呢?
很简单!看好了,只需要加一个-R 参数即可!
sudo chmod 777 -R /home/***/Documents/workspace
然后别忘了重启apache2
sudo /etc/init.d/apache2 restart
后来我想,其实就是权限不足,但是我认为那个eclipse【我使用eclipse开发】的workspace我给了777的权限啊,怎么会有这种情况呢?没办法,只得烦自己之前的工作记录,然后问题就来了,我在终端输入的命令是
sudo chmod 777 /home/***/Documents/workspace
所以在它下面依旧有文件不能读取和写入
那么怎么办呢?
很简单!看好了,只需要加一个-R 参数即可!
sudo chmod 777 -R /home/***/Documents/workspace
然后别忘了重启apache2
sudo /etc/init.d/apache2 restart
相关文章推荐
- PHP Warning: file_put_contents(".."):failed to open stream: Permission denied in...
- linux下的LAMP环境中的问题:failed to open stream: Permission denied in
- easyhadoop:failed to open stream:Permission denied in /var/www/html/index.php
- easyhadoop:failed to open stream:Permission denied in /var/www/html/index.php
- [乐意黎原创]PHP 写入文件时抛failed to open stream:Permission denied in 错误的解决方法
- Lamp环境下编写PHP代码时出现错误:Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
- PHP "Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0" 错误
- 【解决问题】'failed to open stream:Permission denied in......'在php出现情况总结
- 在把jQuery的ajax例子放在AppServ上运行时出错,failed to open stream: No such file or directory in Unknown on line 0
- Laravel migration PHP Storm遇到的问题:failed to open stream: Operation now in progress
- failed to open stream: No such file or directory in includes/src/Varien_Autoload.php on l
- thinkphp5访问报错 ...with message 'mkdir(): Permission denied' in... 或...failed to open stream: Permission denied' in...
- Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
- Warning: require(D:\wamp\www\glink-smart\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp\www\glink-smart\bootstrap\autoload.php on line 1
- failed to open stream: Invalid argument in Unknown on line 0
- rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)
- Hello Stub failed to open hello Permission denied
- PHP使用copy函数复制windows文件时出现failed to open stream: Invalid argument in错误
- clojure-jack-in : error in process filter: open-network-stream: make client process failed: Connecti
- mac下php编程出现php [function.move-uploaded-file]failed to open stream