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
Start gedit
using sudo
at the command line and then edit graphically:
sudo gedit /var/www/html/index.html
sudo gedit
为此,您可以更改文件夹权限
sudo chown $USER -R /var/www/html/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.