Magento Forum

Import/Export Error - Unable to create directory ‘/home’. Access forbidden
 
Smokersroom
Member
 
Total Posts:  63
Joined:  2007-09-04
 

Hi Guys/Gals,

I’m getting an error on import and export:

Warningis_dir() [function.is-dir]open_basedir restriction in effectFile(/home) is not within the allowed path(s): (/home/hosting-name:/usr/lib/php:/usr/local/lib/php:/tmpin /home/hosting-name/public_html/magento/lib/Varien/Io/File.php on line 443
[0] in is_dir
("/home"in /home/hosting-name/public_html/magento/lib/Varien/Io/File.php on line 443
[1] in Varien_Io_File
->_createDestinationFolder("/home/hosting-name/public_html/magento/var/tmp/"in /home/hosting-name/public_html/magento/lib/Varien/Io/File.php on line 205
[2] in Varien_Io_File
->open(Array[1]in /home/hosting-name/public_html/magento/app/code/core/Mage/Dataflow/Model/Batch/Io.php on line 134
[3] in Mage_Dataflow_Model_Batch_Io
->open() in /home/hosting-name/public_html/magento/app/code/core/Mage/Dataflow/Model/Convert/Parser/Xml/Excel.php on line 343
[4] in Mage_Dataflow_Model_Convert_Parser_Xml_Excel
->unparse(Array[0]in /home/hosting-name/public_html/magento/app/code/core/Mage/Dataflow/Model/Convert/Action/Abstract.php on line 235
[5] in Mage_Dataflow_Model_Convert_Action_Abstract
->run() in /home/hosting-name/public_html/magento/app/code/core/Mage/Dataflow/Model/Convert/Profile/Abstract.php on line 132
[6] in Mage_Dataflow_Model_Convert_Profile_Abstract
->run() in /home/hosting-name/public_html/magento/app/code/core/Mage/Dataflow/Model/Profile.php on line 142
[7] in Mage_Dataflow_Model_Profile
->run() in /home/hosting-name/public_html/magento/app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php on line 73
[8] in Mage_Adminhtml_Block_System_Convert_Profile_Run
->_toHtml() in /home/hosting-name/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php on line 553
[9] in Mage_Core_Block_Abstract
->toHtml() in /home/hosting-name/public_html/magento/app/code/core/Mage/Adminhtml/controllers/System/Convert/ProfileController.php on line 189
[10] in Mage_Adminhtml_System_Convert_ProfileController
->runAction() in /home/hosting-name/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php on line 341
[11] in Mage_Core_Controller_Varien_Action
->dispatch("run"in /home/hosting-name/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 141
[12] in Mage_Core_Controller_Varien_Router_Admin
->match(Mage_Core_Controller_Request_Httpin /home/hosting-name/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 147
[13] in Mage_Core_Controller_Varien_Front
->dispatch() in /home/hosting-name/public_html/magento/app/Mage.php on line 424
[14] in Mage
::run("default"in /home/hosting-name/public_html/magento/index.php on line 40

The page also adds:

Unable to create directory ‘/home’. Access forbidden.

Can anybody help? I’m a bit stuck until I can get these products imported!

Ta,
S.

 
Magento Community Magento Community
Magento Community
Magento Community
 
madog32
Jr. Member
 
Total Posts:  10
Joined:  2008-03-30
 

I’m having the same problem

 
Magento Community Magento Community
Magento Community
Magento Community
 
madog32
Jr. Member
 
Total Posts:  10
Joined:  2008-03-30
 

Hi, I’m just the design guy, this is what my tech guy did to fix the probelm

I had to add /home to base_dir directive in apache

means that php on this virtual server can now access everyone elses folders though, I guess at some stage a better solution will become apparent to them

 
Magento Community Magento Community
Magento Community
Magento Community
 
andyy15
Jr. Member
 
Total Posts:  4
Joined:  2008-04-06
 

having the same problem however my hosting company will not add /home to base_dir directive in apache or disable the open_basedir restriction. Any other workaround ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MunchyMonster
Member
 
Avatar
Total Posts:  71
Joined:  2008-02-05
New Hampshire, USA
 

I’ve got the same problem.  My ISP says that it must be a setting in the shopping cart and that I need to set it to my account’s home.  On my server my home directory is something like /home/<MY_HOME_HERE>.  Any clue where I might be able to change home to something else?

MunchyMonster

 
Magento Community Magento Community
Magento Community
Magento Community
 
MunchyMonster
Member
 
Avatar
Total Posts:  71
Joined:  2008-02-05
New Hampshire, USA
 

Alright I did some digging and I found a quick change to the code that seems to work for me.  Please take a look over here at my last post in this thread http://www.magentocommerce.com/boards/viewthread/3063/.  To see what I figured out.  I’ve only tried export so far, but I figured I should share the wealth.

MunchyMonster

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top