JFolder::create: Could not create directory - Joomla

后端 未结 4 1442
南笙
南笙 2021-01-12 13:53

I end up with below error when I try to install a component,module or plugin.

JFolder::create: Could not create directory

What could be th

4条回答
  •  灰色年华
    2021-01-12 14:06

    Now I found two solutions for resolving this issue,and both of them has been worked very well:

    Solution One:

    First find the exact absolute path to your tmp folder by using this trick:

    Create a PHP file in your website root,for example path.php

    Place this snippet of code in the file and hit the save button

    
    

    Navigate to yourdomain.com/path.php in your browser

    From now on:

    1. Login to your Joomla Administartor panel.
    2. Go to Global Configuration
    3. Click on the "Server" tab
    4. Change the path to the "Absolute Path(you've just found)"/tmp
    5. Insert this line of code in your .htaccess file: php_value open_basedir NULL

      This solution has been worked very well for me,and it's doesn't deal with any Joomla's core file hacking.

    Solution Two:

    1. Login to your Joomla Administartor panel.
    2. Go to Global Configuration
    3. Click no the "Server" tab
    4. Change the path from /public_html/tmp to just tmp
    5. Login to control Panel(CPanel),(Or you can use a FTP account for this purpose)
    6. Open File Manager (if you are using FTP,this step must be skipped)
    7. Open Folder "libraries"
    8. Open Folder "joomla"
    9. Open Folder "filesystem"
    10. Right Click on "folder.php" and click Edit.
    11. Look for the line, (search = obd): $obd = ini_get('open_basedir'); Comment out that line with // at the beginning so it becomes://$obd = ini_get('open_basedir');
    12. Save and Close.

提交回复
热议问题