I cannot save a php file in
var/www/html and my computer shows error
How to change permission to save file here?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You need to change the permissions for
running this command will give everyone write access to the
sudo chmod o+w /var/www/html
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 nautilushit enter