Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
MagentoConnect Permission
 
smkjr
Jr. Member
 
Total Posts:  10
Joined:  2008-04-07
 

I am trying to connect to MagentoConnect to test an extension.  What directories need to be available to write? 

I get this error:Error: Please check for sufficient write file permissions

Your Magento folder does not have sufficient write permissions, which this web based downloader requires.

This should be simple but i can’t seem to set the right directory so i can add an extension.

Any leads would be appreciated

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Guru
 
Avatar
Total Posts:  542
Joined:  2007-11-07
Phoenix, AZ
 

Run the following from SSH from the directory where Magento is installed:

find . -type d -exec chmod 777 {} \;

 Signature 

Crucial Web Hosting
Magento hosting in shared, semi-dedicated, and dedicated configurations. Demo store.
Dedicated Containers come with Varien’s professional support services for Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lukastroy
Jr. Member
 
Total Posts:  2
Joined:  2008-05-29
 

How is doing this seen as a good idea? I understand that installing an extension means various files are put in different possibly unknown locations and the only way to catch each one is to open up everywhere to being writeable. But does that not just spell out bad security?!

It would mean providing full writeable access to the htaccess, and other important files.

I could be wrong, but I always believed permissions were there to provide security and limit “permission” of access/modifying of files and setting the entire directory to writeable by all (or apache which is as good as all) voids that level of security. Can someone explain to me that I am wrong please?

Thanks,

Luke

 
Magento Community Magento Community
Magento Community
Magento Community
 
lukastroy
Jr. Member
 
Total Posts:  2
Joined:  2008-05-29
 

OK just found the Wiki you updated Crucial, so there is a way that isn’t a horrible 777 on everything, but why is the method in the Wiki not the suggested way when you run Magento Connect??

http://www.magentocommerce.com/wiki/groups/227/magento_connect

Thanks

luke

 
Magento Community Magento Community
Magento Community
Magento Community
 
Willem
Jr. Member
 
Total Posts:  2
Joined:  2007-09-26
 

As Luke correctly remarks, with setting the permission of all folders to 777, wouldn’t that compromise the system’s vulnerability?

wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Guru
 
Avatar
Total Posts:  542
Joined:  2007-11-07
Phoenix, AZ
 
Willem - 27 September 2008 02:18 PM

As Luke correctly remarks, with setting the permission of all folders to 777, wouldn’t that compromise the system’s vulnerability?

This is an old thread, so it deserves a new reply for first-time readers (I’ve updated my original reply in here as well):

If you’re receiving permissions errors in Magento Connect, it most likely means PHP is running as an Apache module. You must use SSH to upgrade Magento or install (some) extensions:

To install an extension:

./pear install EXTENSION-KEY

Replace EXTENSION-KEY with the name of the extension you’re trying to install.

To upgrade Magento:

./pear upgrade-all

If you get an error, run this instead:

./pear mage-setup .
./
pear install magento-core/Mage_All_Latest

Oh, and any of the above commands need to be done from the directory where Magento is installed, since that’s where the pear file resides.

If you don’t have SSH, ask your host to run the command, they shouldn’t have a problem running it. Make sure you tell them to run it as your username!

Since you’ll no longer be using Magento Connect, reset your permissions:

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

 Signature 

Crucial Web Hosting
Magento hosting in shared, semi-dedicated, and dedicated configurations. Demo store.
Dedicated Containers come with Varien’s professional support services for Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52239 users|832 users currently online|105515 forum posts