Safirfox
Safirfox

Reputation: 11

how to get edit access to /var/www/html on apache2 server on Ubuntu

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

Answers (3)

Sigit
Sigit

Reputation: 798

to do that you can change the folder permissions, the way

sudo chown $USER -R /var/www/html/

Upvotes: 0

Mateusz Nowak
Mateusz Nowak

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

Mark Setchell
Mark Setchell

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

Related Questions