Sometime whenever we trying to update Joomla and it gives us a message of ” Error 0 Cannot open file for writing log “ than Please first follow these Steps.
1) If after following these step the issue still occur and in joomla backend the Temp and Log folder still showing “Unwritable” like this ..
2) To check this information go to joomla backend than System >> System Information >> Folder Permissions .
3) If “unwritable” exist there for last two columns than copy this code
<?php
$path = getcwd();
echo "Your Joomla Path is: ";
echo $path;
?>
and paste into notepad or whatever your favorite text editor and save it with any name like rootinfo.php than upload to root directory of where Joomla installed.
After this open that file in browser and it will show you exact path of your website installed folder..
you can correct the path of both folders through configuration file or in backend by visiting here.. System >> Global Configuration >> than follow the image please..
4) Please be careful don’t forget to add /tmp or /logs in the end of the path or the path of the file with name where your these both file stored.
I hope this helps you to solve this kind of issue. 🙂