Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 2 of 2
Magento Connect: “Warning: Your Magento folder does not have sufficient write permissions.”
 
schilakamarri
Jr. Member
 
Total Posts:  2
Joined:  2012-05-04
 

It Worked with 777 permissions for me!!!

maooley - 25 February 2011 04:56 AM

Crucial,

I’m sorry I ever doubted you!!

The 777 command worked, and Magento Connect is now running. I’m wondering… Do I need to reset my permissions after I am finished in Magento Connect?

Thanks,

Matt

Crucial - 24 February 2011 10:24 AM
The following is 100% safe to run from the directory where Magento is installed:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod o+var var/.htaccess app/etc
chmod 550 mage
chmod 
-R o+w media

If that is not working, try setting all directories to 777 by doing this:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 777 {} \;
chmod o+var/.htaccess
chmod 550 mage
 
Magento Community Magento Community
Magento Community
Magento Community
 
Garnaaltje
Jr. Member
 
Total Posts:  19
Joined:  2010-09-14
 

I tried all the solutions posted here and on other sites, but I keep getting 1 of of both errors.

After a while I found this, and this did the trick for me…

cd TO YOUR MAGENTO FOLDER!!!! (PLEAS DOUBLE CHECK THIS)

chown -R apache .
chgrp -R apache .
find . -type f -exec chmod 644 {} \\;
find . -type d -exec chmod 755 {} \\;
chmod o+w var var/.htaccess includes includes/config.php app/etc
chmod -R o+w media
rm -rf var/cache/*
rm -rf var/session/*
chmod 755 -R var

 
Magento Community Magento Community
Magento Community
Magento Community
 
jenifferjones
Jr. Member
 
Total Posts:  5
Joined:  2012-08-16
uk
 

I have even tried to set up the new FTP option in Mage 1.5.0.1., but cannot seem to get that to work either. (Anyone know what the “Installation Path:” field needs to be set to?)

 
Magento Community Magento Community
Magento Community
Magento Community
 
cybeRRunner
Jr. Member
 
Total Posts:  3
Joined:  2010-10-18
 

I’m exhuming this thread because as of today (magento community ver. 1.7.0.2) the warning in magento connect still persists.

In order to make magento connect work. there is no need to set 777 permissions on EVERY directory in magento (and then revert them back right after for security reasons after installing the extension).

You just set 777 permissions as usual on these folders (including their subdirectories):

/var
/media
/downloader

Then, as already stated by someone in another thread, to let magento connect work you also have to set 777 permissions to the root directory of magento (i.e. the folder where magento has been uploaded: could be “/httpdocs/” or “/public_html/” or similar if you installed it on the webserver’s root - or could be “/shop” or “/magento” or “/whatever” if you chose to install it inside a subfolder).
In this case there’s no need to apply 777 permissions to subdirectories. Just grant 777 to magento’s root folder.

Once you’re done installing extensions, just revert permissions of magento’s root folder to the old value (750, in my case).

I just installed magento community edition ver. 1.7.0.2 and this method solved my problem with magento connect.

Cheers.

 
Magento Community Magento Community
Magento Community
Magento Community
 
janannedehaan
Jr. Member
 
Total Posts:  3
Joined:  2011-11-01
 

You have to set 777 on de rootdir.

 
Magento Community Magento Community
Magento Community
Magento Community
 
maurisource
Jr. Member
 
Total Posts:  8
Joined:  2011-11-21
Montreal, Canada
 

You can do it via SSH as you can do it via FTP also.

If you have your installation as me: home/user/www/website.com/ (magento install here)

While in production:

Set to 777 folder website.com (folder only)
Go to /downloader Set 777 to folder and enlosed items
Go to /media Set 777 to folder and enclosed items
Go to /var set 777 to folder and enclosed items

That\’s all you need to set to 777. The error at this point disappears.

If you having the error during installation:
Your Magento folder does not have sufficient write permissions, which downloader requires. (recheck downloader folder permission or restart server)
Magento Connect 2.0 - Connection Error try again later [when installing with the Extension Key]
Solution that fixed this error is to intall PHP-XML (that was missing)

Open SSH:
Install php-xml rpm package:

# yum --enablerepo=remi install php-xml

If you run another repo, find your PHP-XML version.

My extension is now installed. Enjoy.

PS: Don\’t forget to run magento-cleanup.php to set back securely your folder & files permissions wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
soodne.ee
Jr. Member
 
Total Posts:  1
Joined:  2008-09-30
 

which folders should be 777 and 775 what?

 
Magento Community Magento Community
Magento Community
Magento Community
 
alfata
Jr. Member
 
Total Posts:  2
Joined:  2013-09-12
 

what about this problem after i change folder permision : \\\"CGI Execution Error

Sorry, your request cannot be fulfilled at the moment: Error message from CGIExecd: Security problem: Script file is world-writable

If you are the website administrator, please see the error logs for more information or report to the server administrator. If you are a visitor, please report this to the website administrator. Thank you.\\\”

 
Magento Community Magento Community
Magento Community
Magento Community
 
hjfraind
Jr. Member
 
Total Posts:  1
Joined:  2009-06-01
 

I used
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod o+w app/etc
chmod 550 mage
chmod -R 777 media
chmod -R 777 var
and set chown apache:apache for the whole directory of magento from the root
So if you hace your install @ /var/www/html/shop GO to /var/www/html
and run
chown -R apache:apache shop

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2