joomla 3 error: 0 Cannot open file for writing log

Pablo Lopez picture Pablo Lopez · May 21, 2015 · Viewed 14.1k times · Source

I'm migrating my joomla 3.3.6 project from local to online server, but I get this error when I try to login into my administrator panel:

Error: 0 Cannot open file for writing log

My tmp and logs paths are correct in my configuration.php, and the permissions of the folders and files are correct too (755 and 644).

I don't know what else to do.

Answer

malajisi picture malajisi · Aug 5, 2015

When you done the migration, the configure paremeters were changing also. Access the root folder where you installed Joomla, there you will locate a file with name "configuration.php". Open the file and change the following lines with the new path of logs and tmp folders:

public $log_path = '/path/to/the/joomla/logs';
public $tmp_path = '/path/to/the/jooomla/tmp';

Also please check the permissions of the above folders when modifying. In CentOS I changed the permissions of logs/error.php to 666 then it works.