如何获取编辑访问到/ var / www / html等在Ubuntu的Apache2服务器上 [英] how to get edit access to /var/www/html on apache2 server on Ubuntu

查看:978
本文介绍了如何获取编辑访问到/ var / www / html等在Ubuntu的Apache2服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尽力让我的Apache2服务器上在/ var / www / html等文件的编辑权限,编辑HTML和PHP文件。它可以编辑槽与sudo命令终端,但我希望有一个图形编辑器更易于使用。我已经下载了竹荚鱼,但它不是可以导航到在/ var / www / html等文件夹,因为它是只读的。

I have tried to get edit access to the /var/www/html folder on my apache2 server to edit html and php files. It is possible to edit trough the terminal with sudo command, but I want a graphical editor that is easier to use. I have downloaded BlueFish but it is not possible to navigate to the /var/www/html folder because it is read only.

推荐答案

我猜你没有正确的权限,你并不拥有这个目录。

I guess that you don't have right permission and you don't own this directory.

sudo chown -R group:user /var/www/html
sudo chmod 775 -R /var/www/html

而不是组:用户把你的组和用户名,默认用户名:用​​户名,例如

Instead of group:user put your group and user name, default username:username, for instance

 sudo chown -R safirfox:safirfox /var/www/html

这篇关于如何获取编辑访问到/ var / www / html等在Ubuntu的Apache2服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆