1

I am working in magento. I want to create a directory in the root of cpanel. But it gives me a error like this:

Warning: mkdir() [function.mkdir]: Permission denied  in /home/testing/public_html/indies_installer/app/code/local/Indies/Installer/controllers/Adminhtml/InstallerController.php on line 53
#0 [internal function]: mageCoreErrorHandler(2, 'mkdir() [saveAction()
#3 /home/testing/public_html/indies_installer/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('save')
#4 /home/testing/public_html/indies_installer/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#5 /home/testing/public_html/indies_installer/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/testing/public_html/indies_installer/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#7 /home/testing/public_html/indies_installer/index.php(80): Mage::run('', 'store')
#8 {main}

I am using

mkdir("/home/testing/public_html/test/",0777);

to create a directory from magento module. So, please help me to solve this issue.

4

1 回答 1

1

主机不允许在该文件夹下创建文件夹。如果需要,可以在 Magento 根目录中创建一个文件夹。

于 2012-04-18T10:00:32.840 回答