I am trying to set the upload permissions on a local folder in my test website.
I'm using Terminal on a Mac and the following command:
chmod 777 thumbsbut I get the following error
chmod: thumbs: No such file or directoryI'm really not all that sure about using Terminal so sorry if I'm not being clear - I'm trying to set up a PHP site locally on my Mac.
2 Answers
you have to be in the directory that contains thumbs. Do an
ls to see whats in your current directory. You can also do a
pwdto see where on the filesystem you are. typically when you log in you are in
/home/yourusername
the thumb directory is not there.
3While in any location in your terminal type the following
sudo chmod 777 /path/to/your/folder/*Be sure to be sudo and the /* after folder means that you want to give permissions to any subfolder in the folder