I cannot save a php file in var/www/html
and my computer shows error "Permission denied"
.
How to change permission to save file here?
I cannot save a php file in var/www/html
and my computer shows error "Permission denied"
.
How to change permission to save file here?
You need to change the permissions for /var/www/html
folder.
running this command will give everyone write access to the html
fodder.
sudo chmod o+w /var/www/html
The o
stands for other and the +
adds the permissions w
is write.
Then you should be able to copy you're php file over to /var/www/html
with out using Root permissions
If you want to learn more about the command chmod
click on the link below.
You need to change the permissions of that folder to gain access to write files. Here is the GUI method. Only use terminal to open Nautilus with root permisions. There is a risk opening Nautilus as root. Read it here.
sudo nautilus
hit enter
sudo nautilus
is a bad idea. See http://askubuntu.com/questions/11760/what-is-the-difference-between-gksudo-nautilus-and-sudo-nautilus. – edwinksl Jun 26 '16 at 03:03