I’m exhuming this thread because as of today (magento community ver. 126.96.36.199) 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):
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. 188.8.131.52 and this method solved my problem with magento connect.
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)
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