Reputation: 173
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.
Upvotes: 16
Views: 44932
Reputation: 11
Of all of these what worked was
public_html# find . -type d -exec chmod 775 {} \;
and
chgrp -R www-data
This returns the ability to use Local file system as opposed to FTP
755 does not have group create and delete permissions so 775 worked
Return /media and /var permissions back to /public_html/media# find . -type d -exec chmod 777 {} \;
/public_html/var# find . -type d -exec chmod 777 {} \;
Upvotes: 0
Reputation: 19
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
Upvotes: 1
Reputation: 237
I used the other solutions listed, e.g.:
cd /var/www/html
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
chmod -R 777 downloader var media
But I also had to do:
chown apache:apache /var/www/html
Since the web root directory was still owned by 'root:root' and causing problems (by continuing to display the Magento error message).
Upvotes: 0
Reputation: 1369
In my case this wasn't enough. I had to set 777 permision also to parent folder - public_html (NOT recursive).
Upvotes: 9
Reputation: 1
With me works with this reset permissions:
chmod -R 777 media/
chmod -R 755 var/
I follow some instructions in this url: http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions
Upvotes: 0
Reputation: 8169
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
Upvotes: 33
Reputation: 23542
To reset file permissions run:
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
chmod 777 -R downloader var media
Upvotes: 10