我正在尝试编辑一个 PHP 开源项目,并将其放入 /var/www 以使用 localhost 实时查看更新。它可以工作,但是当我尝试更新项目的一个文件时,Sublime Text
我收到以下错误:
Unable to save /var/www/howtoelementaryos/global.php
Error: unable to create tmp file in /var/www/howtoelementaryos
我想知道我能做些什么来解决这个问题,因为我已经遵循了这些教程:
- https://superuser.com/questions/378412/editing-files-in-var-www
- Git无法创建文件权限被拒绝
- https://askubuntu.com/questions/348427/cant-save-files-in-var-www-using-lamp-installed-with-tasksel
- 致命:无法创建临时文件'/home/username/git/myrepo.git/./objects/pack/tmp_pack_XXXXXX':权限被拒绝
这些都没有帮助我。总结一下,我能做些什么来解决这个问题?
编辑:
统计/var/www:
File: `/var/www'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 806h/2054d Inode: 4202729 Links: 4
Access: (0777/drwxrwxrwx) Uid: ( 33/www-data) Gid: ( 33/www-data)
Access: 2013-10-28 10:33:02.827949771 -0200
Modify: 2013-10-28 10:14:39.030751552 -0200
Change: 2013-10-28 10:33:02.827949771 -0200
Birth: -
统计/var/www/howtoelementaryos:
File: `/var/www/howtoelementaryos'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 806h/2054d Inode: 4195910 Links: 4
Access: (0775/drwxrwxr-x) Uid: ( 33/www-data) Gid: ( 33/www-data)
Access: 2013-10-28 10:33:35.244209685 -0200
Modify: 2013-10-28 10:09:49.724196121 -0200
Change: 2013-10-28 10:33:02.831949803 -0200
Birth: -