Pablo Lopez Pablo Lopez - 1 year ago 414
PHP Question

joomla 3 error: 0 Cannot open file for writing log

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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download