Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Your Magento folder does not have sufficient write permissions

Tags:

magento

I am new to Magento, I am trying to install a theme via magento connect manager, I copy and paste the extension key then click install and then proceed.I get error 'Warning: Your Magento folder does not have sufficient write permissions.'

please give some solution .Any help would be highly appreciated.

like image 223
user1829010 Avatar asked Apr 19 '13 05:04

user1829010


4 Answers

go to Magento home directory and just give permissions for your webroot.

e.g. (in ubuntu) : sudo chown -R www-data .

You could also change the permissions

chmod 777  -R downloader/*

I hope it helps.

[EDIT]

How about in your magento directory (use sudo for below commands if required.):

find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;

For the normal operation or installation of a Magento store, only 2 folders need to be writable:

/media - for web accessible files, such as product images
/var - for temporary (cache, session) and import/export files

Source here

like image 110
medina Avatar answered Nov 01 '22 04:11

medina


To reset file permissions run:

find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
chmod 777 -R downloader var media
like image 10
PiTheNumber Avatar answered Nov 01 '22 05:11

PiTheNumber


In my case this wasn't enough. I had to set 777 permision also to parent folder - public_html (NOT recursive).

like image 9
JohnyFree Avatar answered Nov 01 '22 05:11

JohnyFree


Here is a complete shell script that I wrote to help you setup permissions/ownership of your Magento Installation : mage-set-perms

The shell script is based on the recommendation of Magento official article found here

like image 1
M'hammed Amine Asli Avatar answered Nov 01 '22 05:11

M'hammed Amine Asli