【发布时间】:2016-04-14 23:18:57
【问题描述】:
我试图在一台小型 Ubuntu Server 机器上建立自己的网站。一切顺利,直到我尝试安装jquery-filemanager,它会创建一个错误,因为它无法写入目录:/var/www/html。我正在使用apache2,我注意到每次尝试删除/复制/移动文件时都需要root/sudo。我很确定这就是导致此问题的原因。
有没有办法阻止root 拥有这个目录,或者有什么更好的网站可以使用?
谢谢。
编辑:我在目录“/var/www/html”上做了一个“ls -la”。
cameron@ubuntuserver:/var/www/html$ ls -la
共 72 个 drwxr-xr-x 10 根 4096 Apr 14 16:53 。 drwxr-xr-x 3 根 4096 Apr 14 06:16 .. -rw-r--r-- 1 root root 203 Apr 13 19:25 AdminDevel.html -rw-r--r-- 1 root root 7372 Apr 13 19:49 contact.html drwxr-xr-x 2 root root 4096 Apr 13 16:44 css drwxr-xr-x 9 root root 4096 Apr 14 16:53 文件管理器 drwxr-xr-x 4 root root 4096 Apr 13 16:54 文件夹 drwxr-xr-x 2 root root 4096 Apr 13 16:44 字体 -rw-r--r-- 1 root root 6056 Apr 13 19:33 games.html drwxr-xr-x 4 root root 4096 2012 年 7 月 5 日半色调文件 -rw-r--r-- 1 root root 73 Mar 4 13:25 .htaccess drwxr-xr-x 5 根 4096 Apr 13 18:06 img -rw-r--r-- 1 根 7769 Apr 14 15:00 index.html drwxr-xr-x 5 根根 4096 Apr 13 16:44 js drwxr-xr-x 2 root root 4096 Apr 13 16:44 less cameron@ubuntuserver:/var/www/html$
【问题讨论】:
标签: jquery html apache ubuntu root