I am trying to install a new extension in Joomla,But I am getting this error Message: "JFolder::create: Path not in open_basedir paths Unable to create destination"
What is the solution?
I have test another solution thanks to the user @farahmand and it's worked very well and I decided to provide a step by step guide for the solution
First find the exact absolute path to your
tmp folder by using this trick:
Create a PHP file in your website root,for example
Place this snippet of code in the file and hit the save button
$path = getcwd();
echo "Your Absolute Path is: ";
yourdomain.com/path.php in your browser
From now on:
"Absolute Path(you've just found)"/tmp
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 need any Joomla's core file hacking.
Here is another step by step guide for the second solution:
$obd = ini_get('open_basedir'); Comment out that line with // at the beginning so it becomes:
//$obd = ini_get('open_basedir');
I have tested @johanpw's solution and it's working very well too,but sometimes you can't change the Joomla configuration from Joomla Backend,so you must change the
configuration.php parameters directly using your control panel or a FTP account.
Another solution suggested at the Joomla forum is to enable the FTP layer.
The FTP layer can be enabled from System -> Global Configuration -> Server tab -> FTP Settings. Add FTP details (host, username and password) for a user with access to your server.
I'm not able to test it myself because I can't reproduce the error, but apparently by enabling FTP, Joomla is able to overcome certain server limitations.