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

PEAR ERROR: Cannot install, php_dir for channel “connect.magentocommerce.com/core” is not writeable by the current user
 
uprocka
Jr. Member
 
Total Posts:  3
Joined:  2007-11-25
 

Hello,

I tried to install the Beta 0.7.14800 Version.

during the Updatewizzard “Download Magento Core Modules and Updates” i tried to proceed with the automatic Downloads (beta)

after fixing the open base dir problems I am stuck now with the following error:

PEAR ERRORCannot installphp_dir for channel "connect.magentocommerce.com/core" is not writeable by the current user

which folder/directory hos to get write permission? I don’t understand the error message.

Thanks in advance for any advice

 
Magento Community Magento Community
Magento Community
Magento Community
 
siralbert
Jr. Member
 
Total Posts:  11
Joined:  2008-01-08
 

Hi,

I had the same problem and got help by Moshe.

Try this:

chmod +x pear
 
Magento Community Magento Community
Magento Community
Magento Community
 
uprocka
Jr. Member
 
Total Posts:  3
Joined:  2007-11-25
 

Thanks for the reply.

did not help. I am using the local installation of pear in /usr/share/pear chmoded it 777 just to test - did not work…

any other hints?

 
Magento Community Magento Community
Magento Community
Magento Community
 
siralbert
Jr. Member
 
Total Posts:  11
Joined:  2008-01-08
 

Are you chmoding:

magento/lib/pear/pear

?

 
Magento Community Magento Community
Magento Community
Magento Community
 
randomBboy
Jr. Member
 
Total Posts:  10
Joined:  2008-01-01
 

I am having the same issue and chmoding that file did nothing

anyone else figure out this issue?

 
Magento Community Magento Community
Magento Community
Magento Community
 
randomBboy
Jr. Member
 
Total Posts:  10
Joined:  2008-01-01
 

found it

chmod
magento/lib/pear/php
to 777

 
Magento Community Magento Community
Magento Community
Magento Community
 
siralbert
Jr. Member
 
Total Posts:  11
Joined:  2008-01-08
 

I still have problems with installing the install wizard interface via the admin panel / extensions / avaliable remote

Is there any solution out there that fixes this?

Best regards,
siralbert

Warningfile_exists() [function.file-exists]open_basedir restriction in effectFile(/usr/local/etc/pear.conf) is not within the allowed path(s): (/home/siralbert:/usr/lib/php:/usr/local/lib/php:/tmpin /home/siralbert/public_html/magento/lib/pear/php/PEAR/Config.php on line 625
[0] in file_exists
("/usr/local/etc/pear.conf"in /home/siralbert/public_html/magento/lib/pear/php/PEAR/Config.php on line 625
[1] in PEAR_Config
->PEAR_Config("/home/siralbert/public_html/magento/lib/pear/pear.ini""", , 1in /home/siralbert/public_html/magento/lib/pear/php/PEAR/Config.php on line 694
[2] in PEAR_Config
->singleton("/home/siralbert/public_html/magento/lib/pear/pear.ini"in /home/siralbert/public_html/magento/lib/Varien/Pear.php on line 78
[3] in Varien_Pear
->getConfig() in /home/siralbert/public_html/magento/lib/Varien/Pear.php on line 47
[4] in Varien_Pear
->__construct() in /home/siralbert/public_html/magento/lib/Varien/Pear.php on line 53
[5] in Varien_Pear
->getInstance() in /home/siralbert/public_html/magento/app/code/core/Mage/Adminhtml/controllers/Extensions/RemoteController.php on line 73
[6] in Mage_Adminhtml_Extensions_RemoteController
->installAction() in /home/siralbert/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php on line 332
[7] in Mage_Core_Controller_Varien_Action
->dispatch("install"in /home/siralbert/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 136
[8] in Mage_Core_Controller_Varien_Router_Admin
->match(Mage_Core_Controller_Request_Httpin /home/siralbert/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 166
[9] in Mage_Core_Controller_Varien_Front
->dispatch() in /home/siralbert/public_html/magento/app/Mage.php on line 411
[10] in Mage
::run("base"in /home/siralbert/public_html/magento/index.php on line 29

Downloading 
and installing connect.magentocommerce.com/core/Interface_Install_Defaultplease wait...

downloading Interface_Install_Default-0.7.0.tgz ...
Starting to download Interface_Install_Default-0.7.0.tgz (111,844 bytes)
.........................
done111,844 bytes
could not extract the package
.xml file from "/home/twerpse/public_html/magento/lib/pear/download/Interface_Install_Default-0.7.0.tgz" File /home/twerpse/public_html/magento/lib/pear/download/usr/home/michael/dev/package/var/pear/package.xml already exists and is write protected
Download of "mage-core/Interface_Install_Default" succeededbut it is not a valid package archive
Error
cannot download "mage-core/Interface_Install_Default"
Array
(
    
[data] => Array
        (
            
[0] => Array
                (
                    
[0] => Download failed
                
)

        )

    
[headline] => Install Errors
)


PEAR ERRORinstall failed
Image Attachments
dump.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
lkbryant
Member
 
Avatar
Total Posts:  60
Joined:  2007-09-03
 

you have open_basedir restriction for your hosting.
you need to tell your hosting to disable that or ask your hosting to include /usr/local/etc/ to the php include allowed path

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

You can also add this code to app/code/core/Mage/Core/functions.php in function mageCoreErrorHandler:

// ignore attemts to read system files when open_basedir is set
        if (stripos($errfile.$errstr'pear')!==false && $errno == E_WARNING && stripos($errstr'open_basedir')!==false{
            
return;
        
}

// add the code above right before this line:
    
mageSendErrorHeader();
 
Magento Community Magento Community
Magento Community
Magento Community
 
siralbert
Jr. Member
 
Total Posts:  11
Joined:  2008-01-08
 

Ah. Does not work. :(

Parse errorsyntax errorunexpected T_CONSTANT_ENCAPSED_STRING in /home/siralbert/public_html/magento/app/code/core/Mage/Core/functions.php on line 144
 
Magento Community Magento Community
Magento Community
Magento Community
 
siralbert
Jr. Member
 
Total Posts:  11
Joined:  2008-01-08
 

Anybody who knows if it can be something in the syntax that is missing?

// ignore attemts to read system files when open_basedir is set
if (stripos($errfile.$errstr'pear')!==false && $errno == E_WARNING && stripos($errstr'open_basedir')!==false{
    
return;
}

if you’re getting this error, it most likely means that you simply
forgot a `;’ somewhere previously (e.g.:
echo’this is stuff to echo’;
echo’this is more stuff to echo’
function_name($variables);
)
look closely at all the code that comes before
your ‘T_CONSTANT_ENCAPSED_STRING’ error, especially the line
immediately before.

http://www.faqts.com/knowledge_base/view.phtml/aid/7731

 
Magento Community Magento Community
Magento Community
Magento Community
 
George
Jr. Member
 
Total Posts:  3
Joined:  2007-11-29
 

I’m unable to install magento too. I’m getting this:

Setting preferred state tobeta

config
-set succeeded
Downloading 
and installing Magentoplease wait...

Did not download optional dependenciespear/XML_RPC, use --alldeps to download automatically
pear
/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
downloading PEAR-1.6.2.tgz ...
Starting to download PEAR-1.6.2.tgz (297,794 bytes)
.....................................
done297,794 bytes
downloading Mage_Pear_Helpers
-0.7.0.tgz ...
Starting to download Mage_Pear_Helpers-0.7.0.tgz (9,233 bytes)
...
done9,233 bytes
downloading Lib_ZF
-0.7.0.tgz ...
Starting to download Lib_ZF-0.7.0.tgz (2,080,168 bytes)

...and the whole thing stops here. I’ve tried both versions.

From pear.php.net:

As promised, XML-RPC has been disabled at pear.php.net. Information is now served via REST files at pear.php.net/rest. If you are using a PEAR version earlier than 1.4.0, you will need to manually upgrade PEAR using direct URLs.

EDIT: Right now:

config-set succeeded
Downloading 
and installing Magentoplease wait...

WARNINGchannel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
Attempting to discover channel 
"connect.magentocommerce.com/core"...
downloading channel.xml ...
Starting to download channel.xml (687 bytes)
....
done687 bytes
Auto
-discovered channel "connect.magentocommerce.com/core"alias "mage-core"adding to registry
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top