Reputation: 11
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.
Upvotes: 1
Views: 16319
Reputation: 798
to do that you can change the folder permissions, the way
sudo chown $USER -R /var/www/html/
Upvotes: 0
Reputation: 4121
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
Upvotes: 4
Reputation: 207678
Start gedit
using sudo
at the command line and then edit graphically:
sudo gedit /var/www/html/index.html
sudo gedit
Upvotes: 0