

So if the LAMP stack is Ubuntu you will find the web server user account is 'That is a good basis for setting your Drupal installation folders to the correct ownerships. The Apache webserver by default uses the group 'apache' or 'This will be identical. The Drupal installation folders should all be owned by the same user and group. On a typical LAMP hosting stack you will need to check the file and folder ownership.
#How do you find mac for a linux code
Since your local development code is probably destined to be deployed to the Internet someday, it's a good idea to follow security best practices even in your local environment. However, if the installation which you need to fix is accessible via the public Internet, then you have to be careful to set your file and folder permissions correctly. Security is not as important in this context, and you can loosen up file and folder permissions without fear. For example, when you dealing with a copy of your production site on your laptop, the laptop does not have port 80 open, and the site is not accessible via the Internet. There is no anxiety attached to this in the context of your local development installation.

You need to modify the permissions on the "/sites/default/files" directory so that it can be writable by the web server.
