Ошибка joomla cannot open file for writing log

0 Пользователей и 1 Гость просматривают эту тему.

  • 15 Ответов
  • 34492 Просмотров

при входе в админку выдаёт Ошибка 0 Cannot open file for writing log

пути в конфиге проверил
права на tmp и log 777

Зайдите в корневую папку сайта, откройте configuration.php (для начала проверьте доступ для его редактирования, стоит по умолчанию только чтение). Затем найдите там строки вида

public $log_path = ‘/logs’;
public $tmp_path = ‘/tmp’;

Дело в них, здесь задан неверный путь. Поинтересуйтесь у своего хостера, какой путь следует использовать. У каждого хостера он разный. У меня в mchost.ru, к примеру    

public $log_path = ‘/home/httpd/vhosts/lotoscenter.com/httpdocs/logs’;
public $tmp_path = ‘/home/httpd/vhosts/lotoscenter.com/httpdocs/tmp’;

После установления правильного пути все заработает ;)

« Последнее редактирование: 04.12.2013, 21:23:31 от alexcarver »

Записан

Присоединяюсь к просьбе. Админка внезапно перестала работать. Что только не делал. Толку нет

У меня такая ошибка появилась при вводе неправильного пароля! CAPS был включен. Причем в админку заходит и пишет «Cannot open file for writing log» Больше ничего в админке сделать нельзя.

Ну так пропишите правильные пути к ‘/logs’ и права на эти папки проверьте.

А если все в порядке, и один хер такая проблема!?

А если все в порядке, и один хер такая проблема!?

«Вот у него и займи» (© Колыван)

Если в папке logs что-то есть, удалите это, проверьте права на эту папку: должно быть или 700 или 755.

Здравствуйте, уважаемые форумчане!

У меня такая же проблема.После переноса сайта на Joomla 3 с одного хостинга на другой появилась ошибка (0 Cannot open file for writing log)при входе в админку. В файле конфигурации абсолютные пути к папке логов и тмп прописаны правильно! Права стоят 755. При этом сам сайт работает исправно. На старом хостинге все работает нормально.
С чем это может быть связано?
Помогите, пожалуйста…

P.S. Забыл сказать, что на новом хостинге отключили magic_quotes_gpc (потому что вылазила ошибка) и изменили версию php…

В configuration.php найдите строчку 23:

	public $error_reporting = 'default';

замените на:

	public $error_reporting = 'development';

перезайдите в админку, посмотрите, какие ошибки выскакивают, посмотрите что в логах.

У меня то же проблема при обновлении до Joomla! 3.4.1 (Обнаружена ошибка.  0 Cannot open file for writing log) в файле configuration.php — такие строки:
    public $log_path = ‘/home/medici/public_html/logs’;
   public $tmp_path = ‘/home/medici/public_html/tmp’;
Подскажите, что надо сделать?

Да нет…. Места еще предостаточно….924.43 МБ объем дискового пространства, используемого.
2,000.00 МБ квота (МБ 207.39 используется).

« Последнее редактирование: 23.03.2015, 17:04:23 от belovpaha »

Записан

У меня была проблема в том что в папке logs был файл апдейт Joomla php как только его удалил то все заработало.

Такая же проблема. Пути в проверке прав отображаются доступными, права на папку 777.
Но все равно при авторизации с неверным паролем пишет —
2015/06/01 11:22:21 [error] 15573#0: *17 upstream sent invalid status «0 Cannot open file for writing log» while reading response header from upstream, client: 101.154.50.119, server: sitename.ru, request: «POST /index.php/component/users/?task=user.login HTTP/1.1», upstream: «fastcgi://127.0.0.1:9000», host: «sitename.ru», referrer: «https://sitename.ru/index.
Может дело в том что SSL используется…

проделал как вы все написали… хочу обновить до верся.3.5.1 у меня как бы заходить в обновление и прочто грузится безконечное время… в чем может быть проблема7

Just a bit of all around info wrapped here…

Permissions issues usually are caused by 2 main reasons:

  1. Real file/folder permissions issues on the OS
  2. Wrong directory paths for the tmp/log directories, defined in the configuration file.

The best way to see if there is actual a permissions issue is to check in the backend:

System Information -> Directory Permissions.

This will tell you which files/folders in the root of your Joomla installation are writable (green color), or not writable (red color).

For case 1 — One of the easiest ways, to deal with wrong permissions assigned on file/folders by the operating system, is to use Akeeba’s Admin Tools. It provide a utility to setup your desired permissions and apply to all folders/files of the Joomla installation.

For case 2 — In the case you have wrong paths defined for tmp/log directories, you should change this in the global configuration of Joomla. If you don’t know what your hosting’s home directory is, it’s better to ask your hosting provider.

You can edit these path either from the backend of Joomla in Glogal Configuration, or via the file manager of your hosting or connecting with FTP, and editing the configuration.php file.

Usually in cPanel hosting, this is like:

"/home/myHostingUsername/logs"
"/home/myHostingUsername/tmp"

So the final look for these settings in your configuration.php file should be like:

public $log_path = '/home/myHostingUsername/logs';
public $tmp_path = '/home/myHostingUsername/tmp';

*Be aware, that this is one of the most common «mistakes» Joomla beginners do. They forget to change these paths in their configuration
file, after moving their sites from another host, a subfolder or from
their localhost, resulting these directories to be unwritable.

Moderator: General Support Moderators

milesreid

Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 15, 2013 3:17 pm
Location: Leeds, UK
Contact:

Cannot open file for writing log

I have just uploaded my Joomla 3.1.1 installation from my development pc to my production linux server. The front end is looking fine, but I when I try to login as administrator, I get the message

0 Cannot open file for writing log

The webserver is Apache. I assume that this is a permissions issue, and have given the following folders 777 permissions:

logs
tmp
administrator/cache

The relevant lines from my configuration.php file are
public $tmp_path = ‘/tmp’;
public $log_path = ‘logs’;
(both as default)

What am I missing here?
Any help gratefully received
Miles


User avatar

JER3

Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Sun May 05, 2013 9:24 am
Contact:

Re: Cannot open file for writing log

Post

by JER3 » Wed May 15, 2013 9:50 pm

Have you updated the path for $log_path and $tmp_path in the configuration.php file in your site’s root folder?

Regards,
Barbara


milesreid

Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 15, 2013 3:17 pm
Location: Leeds, UK
Contact:

Re: Cannot open file for writing log

Post

by milesreid » Thu May 16, 2013 9:10 am

Thanks Barbara.
I sorted out the problem by deleting the configuration.php file, re-running the installation and then importing the data from a backup.

I found out that the error had been caused by the values assigned to the $log_path and $tmp_path variables — I had used a path relative to the web root and not absolute values.
Correct values were

$log_path = ‘/var/www/vhosts/mysite.com/subdomains/clients/httpdocs/Sacred/logs’;
$tmp_path = ‘/var/www/vhosts/mysite.com/subdomains/clients/httpdocs/Sacred/tmp’;

Many thanks for your help
Miles


rasputino

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jan 24, 2013 3:14 pm

Re: Cannot open file for writing log

Post

by rasputino » Mon Sep 30, 2013 10:47 am

My problem was that the «logs» directory was used by my hosting company, and I had no access to this directory.

I created a new directory called «binnacles», and changed the path in configuration.php to this directory:

public $log_path = ‘/homepages/2/d353530289/htdocs/binnacles’;


User avatar

leolam

Joomla! Master
Joomla! Master
Posts: 20545
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S’pore/Bogor/ North America
Contact:

Re: Cannot open file for writing log

Post

by leolam » Tue Oct 01, 2013 5:38 pm

For those who face these issues:

To find out what your absolute path is, copy the following code into a text editor (i.e. JEdit, Notepad, etc), save the file as a .php naming it whatever you prefer (i.e anyfilename.php.).

Code: Select all

<?php 
 $path = getcwd();
 echo "Your Absoluthe Path is: ";
 echo $path;
 ?>

Using your FTP software, ftp the file you have just created to your root folder.

Open your web browser and type in http://www.yourdomain.com/anyfilename.php. The result will show the absolute path!

IMPORTANT: For security reasons, delete this file as soon as you have ascertained the information you require.

Leo 8)


Hermannsson

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jan 31, 2014 4:49 pm

Re: Cannot open file for writing log

Post

by Hermannsson » Fri Jan 31, 2014 4:51 pm

leolam: You are my hero today, thanks a lot. Your post solved my sitepain :-)


firejunky

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 23, 2011 5:03 pm

Re: Cannot open file for writing log

Post

by firejunky » Thu Feb 13, 2014 6:04 pm

Thanks leolam,

I moved my site to a new host and got the error mentioned above «0 Cannot open file for writing log». I used your absolute path code to find my new server’s path and was able to fix the path to my $log_path and $tmp_path in configuration.php. Thanks again.


vanguardkarthik

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 26, 2014 7:07 am

Re: [SOLVED] Cannot open file for writing log

Post

by vanguardkarthik » Wed Mar 26, 2014 7:15 am

The reason is some time your hosting providers log folder and the joomla log folder is same.
You cannot change permission hosting providers «logs» folder.

Alternatively you create the log folder example «joomlalogs» in joomla installed root path and set the permission 777.
After that set the log folders path in configuration.php example «public $log_path = ‘/www/homepages/htdocs/joomlalogs’;

Make it simple


sovainfo

Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Cannot open file for writing log

Post

by sovainfo » Wed Mar 26, 2014 8:01 am

It is always bad advice to set folders to 777. There is never, ever a need to do so!

Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!


User avatar

ISScyborg

Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Mon Jun 04, 2012 1:40 pm
Location: Slovenia
Contact:

Re: Cannot open file for writing log

Post

by ISScyborg » Tue Apr 08, 2014 12:03 pm

I have same problem, when I try to update Joomla from 3.2.2 on 3.2.3

cannot open file for writing log
Image

logs path and tmp path are good, I do not know what is wrong?

Image


_Arthur_

Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Apr 27, 2014 12:24 pm

Re: Cannot open file for writing log

Post

by _Arthur_ » Sun Apr 27, 2014 1:34 pm

Hi ISScyborg,

did you solved your problem? I’ve the same problem too (trying to update from 2.3.2 to 2.3.3 —> look here) in the German area …

Ciao Arthur


pcproffitt

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 18, 2005 1:33 pm

Re: Cannot open file for writing log

Post

by pcproffitt » Fri May 02, 2014 3:15 pm

I had this same issue trying to update from 3.2.3 to 3.3.0. I found a message in the error log indicated Joomla could not open the file logs/joomla_update.php. Turns out the permissions on that file were not correct for the environment. Once corrected the update continued as expected. Hope that is helpful to others.


nanjicong

Joomla! Intern
Joomla! Intern
Posts: 50
Joined: Sun Aug 04, 2013 11:41 am

Re: Cannot open file for writing log

Post

by nanjicong » Wed May 14, 2014 7:40 am

leolam, you are the superstar.

leolam wrote:For those who face these issues:

To find out what your absolute path is, copy the following code into a text editor (i.e. JEdit, Notepad, etc), save the file as a .php naming it whatever you prefer (i.e anyfilename.php.).

Code: Select all

<?php 
 $path = getcwd();
 echo "Your Absoluthe Path is: ";
 echo $path;
 ?>

Using your FTP software, ftp the file you have just created to your root folder.

Open your web browser and type in http://www.yourdomain.com/anyfilename.php. The result will show the absolute path!

IMPORTANT: For security reasons, delete this file as soon as you have ascertained the information you require.

Leo 8)


designer156

Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun May 17, 2009 1:00 am

Re: Cannot open file for writing log

Post

by designer156 » Thu Jun 12, 2014 11:32 am

Worked for me too — had not updated the configuration.php file correctly after a migration to a new host. Found the path using the code below and updated the configuration.php file. Job done.

leolam wrote:For those who face these issues:

To find out what your absolute path is, copy the following code into a text editor (i.e. JEdit, Notepad, etc), save the file as a .php naming it whatever you prefer (i.e anyfilename.php.).

Code: Select all

<?php 
 $path = getcwd();
 echo "Your Absoluthe Path is: ";
 echo $path;
 ?>

Using your FTP software, ftp the file you have just created to your root folder.

Open your web browser and type in http://www.yourdomain.com/anyfilename.php. The result will show the absolute path!

IMPORTANT: For security reasons, delete this file as soon as you have ascertained the information you require.

Leo 8)


xshmonx

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Aug 15, 2014 9:10 pm
Contact:

Re: Cannot open file for writing log

Post

by xshmonx » Fri Aug 15, 2014 9:16 pm

Thanks leolam! Worked for me!

Last edited by pe7er on Fri Aug 15, 2014 10:37 pm, edited 1 time in total.

Reason: manual signature has been removed


lelogrott

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Sep 10, 2014 10:17 pm

[HELP] Cannot open file for writing log

Post

by lelogrott » Wed Sep 10, 2014 10:28 pm

Hey guys, i REALLY need your help!

i’m getting the same error message, already checked the paths (both of them), and the permissions! and still nothing.

buut, theres a few details. my host have the 3.10 php version and the joomla that i’m using needed 3.10.1. this is one academic website, so i can’t say to the manager update it, is not that easy.

so i re-write the configuration.php files (administrator too). the site is on http://labp2d.joinville.udesc.br

but when i try to log, that error pops out.

sorry about any «language mistake»

please, help me.


stinson

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Sep 15, 2014 12:14 pm

Re: Cannot open file for writing log

Post

by stinson » Fri Sep 19, 2014 12:16 pm

Hey,

I get the same error when I log in to my joomla website.

The last thing I did bevore I logged out was changing the eMail sending settings (smtp, account name and so on). Then I saved it. And logged out.

Next time I logged in the message occured.

Already tried changing the path (leolams idea). No success.

Some additional information that may be useful:

1. A friend hosts my site on his server. I started to build my joomla page on my own PC with xampp. I gave him the files and he managed it. It worked all fine until I was changing the settings (eMail sending and so on).

2. When I check the old directory of xampp (xampp/apps/joomla) and go in the tmp or log folder: there are No files. When I checked into the ftp folder where my site is hosted there are two files: /tmp/index.html and logs/index.html .

3. configuration.php : bevore I changed anything there (bevore leolams idea) there still were the old directories when I used joomla in xampp on my own PC (D:/xampp/apps/joomla/tmp or …/logs). But the site was working.

4. configuration.pho : there are no entries at all ftp entries ( public $ftp_host = »; …port, user, pass, root neither).

I would realy appreciate it if someone could help me in this case.

Thanks. Stinson.


stinson

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Sep 15, 2014 12:14 pm

Re: Cannot open file for writing log

Post

by stinson » Fri Sep 19, 2014 12:31 pm

Additional info I just found out that may be useful:

It seems that I cant change any permission of the original joomla folders or files.


sovainfo

Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Cannot open file for writing log

Post

by sovainfo » Fri Sep 19, 2014 3:28 pm

Ask your friend to change configuration.php and put proper values in for $log and $tmp. It seems you are not allowed to do that.

Verify with System->System Information->Directory Permissions whether those folders are writable. They must be!

You could try to enable the FTP layer in Global Configuration. Your webserver doesn’t have write access to its filesystem. Provide the host/user/pw and try to save. When credentials are correct it should allow you to do that. This assumes you have FTP access to your webspace. Did you try with FileZilla?

Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!


stinson

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Sep 15, 2014 12:14 pm

Re: Cannot open file for writing log

Post

by stinson » Wed Sep 24, 2014 8:36 am

Hi sovainfo!

Thanks for the reply!
——-
Important information about the problem: When I go to the login page http://www…..com/administrator/ and type in ANY combination of username and password and «Log in» it gets me to the page: Error — An Error occured — 0 Cannot open file for writing log (see attached picture).
———

I was able to change the configuration.php (and change the paths of tmp and log).

Verify with System->System Information->Directory Permissions whether those folders are writable. They must be!

Could you explain which directory to check and where (my Windows, Joomla (can’t get to System configuration), or with FileZilla?)? I guess you mean in Joomla.

You could try to enable the FTP layer in Global Configuration. Your webserver doesn’t have write access to its filesystem. Provide the host/user/pw and try to save. When credentials are correct it should allow you to do that. This assumes you have FTP access to your webspace. Did you try with FileZilla?

I do have FTP (sftp) access to my webspace and I use FileZilla. «enable the FTP layer in Global Configuration» -> I can’t get access via the joomla interface. Is there a way to change it manually via FTP files?

Thanks for your help!

Stinson.

Edit: sorry for the link -.-

You do not have the required permissions to view the files attached to this post.


stinson

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Sep 15, 2014 12:14 pm

Re: Cannot open file for writing log

Post

by stinson » Wed Sep 24, 2014 8:46 am

Update: Global Configuration = configuration.php
Changed following values:

public $ftp_host = ‘….com’;
public $ftp_port = ’22’;
public $ftp_user = ‘xxx’;
public $ftp_pass = ‘xxx’;
public $ftp_root = ‘/var/www/xxx/’;
public $ftp_enable = ‘1’;

xxx -> just for the forum of course.

Result: Now when I log in it takes longer to load but I get the same error page.


sovainfo

Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Cannot open file for writing log

Post

by sovainfo » Wed Sep 24, 2014 4:02 pm

Looks like the webserver is not properly configured. Try FPA as mentioned in the header of the board.

Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!


User avatar

H13

Joomla! Ace
Joomla! Ace
Posts: 1537
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Cannot open file for writing log

Post

by H13 » Sun Nov 16, 2014 10:45 pm

Hi, getting the same problems like others above on one of the test server:

Cannot open file for writing log

When I changed the log folder to 777, everything is OK, so this seems to be permissions problem not the path problem.

The problem is, the site is working with FTP layer and it works OK

When I look at:

librariesjoomlalogloggerformattedtext.php

I see:

Code: Select all

if (!$this->file = fopen($this->path, 'a'))
		{
			throw new RuntimeException('Cannot open file for writing log');
		}
		if ($head)
		{
			if (!fwrite($this->file, $head))
			{
				throw new RuntimeException('Cannot fput file for log');
			}
		}

Which seems to be not compatible with FTP layer (no JFile, no JFolder, etc. ???)

Can somebody confirm this?

Thank you, Jan


User avatar

H13

Joomla! Ace
Joomla! Ace
Posts: 1537
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Cannot open file for writing log

Post

by H13 » Mon Nov 17, 2014 12:00 am

For those who need to write Log entries with FTP layer
(be aware, writing files and their content with FTP layer takes more memory resources than not using FTP layer)

EDIT:
librariesjoomlalogloggerformattedtext.php

method:
public function addEntry(JLogEntry $entry)
http://www.phoca.cz/joomla/api/class-JL … #_addEntry

FROM:

Code: Select all

if (!fwrite($this->file, $line . "n"))
		{
			throw new RuntimeException('Cannot write to log file.');
		}

TO:

Code: Select all

jimport('joomla.filesystem.file');// can be set in header
$content = '';
		if (JFile::exists($this->file)) {
			$content = file_get_contents($this->file);
		}
		$content = $content . $line . "n";
		if (!JFile::write($this->file, $content)) {
			throw new RuntimeException('Cannot write file for log');
		}

method:
protected function initFile()
http://www.phoca.cz/joomla/api/class-JL … #_initFile

FROM:

Code: Select all

if (!$this->file = fopen($this->path, 'a'))
		{
			throw new RuntimeException('Cannot open file for writing log');
		}
		
		if ($head)
		{
			if (!fwrite($this->file, $head))
			{
				throw new RuntimeException('Cannot fput file for log');
			}
		}

TO:

Code: Select all

jimport('joomla.filesystem.file');// can be set in header
$content = '';
		if (JFile::exists($this->path)) {
			$content = file_get_contents($this->path);
			$this->file = $this->path;
		}
		
		if ($head){
			$content = $content . $head;
			if (!JFile::write($this->path, $content)) {
				throw new RuntimeException('Cannot write file for log');
			}
		}


makevalue

Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Wed Jun 04, 2008 5:24 pm
Location: Ventura County

Re: Cannot open file for writing log

Post

by makevalue » Sat Jan 17, 2015 10:32 pm

leolam wrote:For those who face these issues:

To find out what your absolute path is, copy the following code into a text editor (i.e. JEdit, Notepad, etc), save the file as a .php naming it whatever you prefer (i.e anyfilename.php.).

Code: Select all

<?php 
 $path = getcwd();
 echo "Your Absoluthe Path is: ";
 echo $path;
 ?>

Using your FTP software, ftp the file you have just created to your root folder.

Open your web browser and type in http://www.yourdomain.com/anyfilename.php. The result will show the absolute path!

IMPORTANT: For security reasons, delete this file as soon as you have ascertained the information you require.

Leo 8)

Cool beans Leo
;D


User avatar

willkey

Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Mon Feb 25, 2008 6:02 pm
Location: Huntington, Vermont
Contact:

Re: Cannot open file for writing log

Post

by willkey » Wed Feb 25, 2015 6:09 pm

this worked, thank you!

rasputino wrote:My problem was that the «logs» directory was used by my hosting company, and I had no access to this directory.

I created a new directory called «binnacles», and changed the path in configuration.php to this directory:

public $log_path = ‘/homepages/2/d353530289/htdocs/binnacles’;


atodd

Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Thu Feb 10, 2011 4:14 pm

Re: Cannot open file for writing log

Post

by atodd » Fri Feb 27, 2015 4:32 pm

rasputino wrote:My problem was that the «logs» directory was used by my hosting company, and I had no access to this directory.

I created a new directory called «binnacles», and changed the path in configuration.php to this directory:

public $log_path = ‘/homepages/2/d353530289/htdocs/binnacles’;

I have this same problem but it didn’t help when I created a new folder and changed my configuration.php file. I am trying to update from 2.5.28 to 3.4 and it fails every time. The error says that it cannot open /logs/index.html because it is not writable. For some reason, Joomla keeps looking for that file (which doesn’t exist) and I can’t seem to change it! The site is on 1and1 and they have that logs folder locked down so I can’t do anything with it.

Any help would be greatly appreciated!


User avatar

willkey

Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Mon Feb 25, 2008 6:02 pm
Location: Huntington, Vermont
Contact:

Re: Cannot open file for writing log

Post

by willkey » Sat Feb 28, 2015 3:46 pm

please follow these instructions to a «T» — also check with your template provider to see what their template upgrade might require. Changing the default front end template to one that ships with Joomla is key, so use Beez or something before you upgrade.
https://docs.joomla.org/Joomla_2.5_to_3 … _Migration


atodd

Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Thu Feb 10, 2011 4:14 pm

Re: Cannot open file for writing log

Post

by atodd » Tue Mar 17, 2015 1:46 pm

I have followed the instructions to a «T» and still get the same error. I really don’t think it matters how well anyone follows the instructions. The logs folder is locked down and Joomla wants to write to it. So it sounds to me like a modification to the Joomla core could fix the problem. Of course, I have no idea where I could change it to point to a different folder. Anyone have any other ideas?


User avatar

willkey

Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Mon Feb 25, 2008 6:02 pm
Location: Huntington, Vermont
Contact:

Re: Cannot open file for writing log

Post

by willkey » Tue Mar 17, 2015 11:24 pm

try making a new folder, with a new name, like «mylogs» and use that for the /logs variable in the configuration file



Return to “Migrating and Upgrading to Joomla! 3.x”


Jump to

  • Joomla! Announcements
  • ↳   Announcements
  • ↳   Announcements Discussions
  • Joomla! 4.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 4.x
  • ↳   Installation Joomla! 4.x
  • ↳   Administration Joomla! 4.x
  • ↳   Migrating and Upgrading to Joomla! 4.x
  • ↳   Extensions for Joomla! 4.x
  • ↳   Security in Joomla! 4.x
  • ↳   Templates for Joomla! 4.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 4.x
  • ↳   Language — Joomla! 4.x
  • ↳   Performance — Joomla! 4.x
  • ↳   Joomla! 4.x Coding
  • Joomla! 3.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 3.x
  • ↳   Installation Joomla! 3.x
  • ↳   Joomla! 3.x on IIS webserver
  • ↳   Administration Joomla! 3.x
  • ↳   Access Control List (ACL) in Joomla! 3.x
  • ↳   Migrating and Upgrading to Joomla! 3.x
  • ↳   Security in Joomla! 3.x
  • ↳   Extensions for Joomla! 3.x
  • ↳   Templates for Joomla! 3.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 3.x
  • ↳   Language — Joomla! 3.x
  • ↳   Performance — Joomla! 3.x
  • ↳   Joomla! 3.x Coding
  • Joomla! Versions which are End of Life
  • ↳   Joomla! 2.5 — End of Life 31 Dec 2014
  • ↳   General Questions/New to Joomla! 2.5
  • ↳   Installation Joomla! 2.5
  • ↳   Joomla! 2.5 on IIS webserver
  • ↳   Administration Joomla! 2.5
  • ↳   Access Control List (ACL) in Joomla! 2.5
  • ↳   Migrating and Upgrading to Joomla! 2.5
  • ↳   Security in Joomla! 2.5
  • ↳   Extensions for Joomla! 2.5
  • ↳   Templates for Joomla! 2.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 2.5
  • ↳   Language — Joomla! 2.5
  • ↳   Performance — Joomla! 2.5
  • ↳   Joomla! 1.5 — End of Life Sep 2012
  • ↳   General Questions/New to Joomla! 1.5
  • ↳   Installation 1.5
  • ↳   Joomla! 1.5 on IIS webserver
  • ↳   Administration 1.5
  • ↳   Migrating and Upgrading to Joomla! 1.5
  • ↳   Security in Joomla! 1.5
  • ↳   Extensions for Joomla! 1.5
  • ↳   Templates for Joomla! 1.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 1.5
  • ↳   Language — Joomla! 1.5
  • ↳   Performance — Joomla! 1.5
  • ↳   Joomla! 1.0 — End of Life 22 July 2009
  • ↳   Installation — 1.0.x
  • ↳   Upgrading — 1.0.x
  • ↳   Security — 1.0.x
  • ↳   3rd Party/Non Joomla! Security Issues
  • ↳   Administration — 1.0.x
  • ↳   Extensions — 1.0.x
  • ↳   Components
  • ↳   Modules
  • ↳   Plugins/Mambots
  • ↳   WYSIWYG Editors — 1.0.x
  • ↳   Integration & Bridges — 1.0.x
  • ↳   phpbb — Joomla! Integration
  • ↳   Templates & CSS — 1.0.x
  • ↳   Language — 1.0.x
  • ↳   Joom!Fish and Multilingual Sites
  • ↳   Performance — 1.0.x
  • ↳   General Questions — 1.0.x
  • Joomla! International Language Support
  • ↳   International Zone
  • ↳   Arabic Forum
  • ↳   تنبيهات هامة
  • ↳   الدروس
  • ↳   4.x جوملا!
  • ↳   جوملا! 1.6/1.7
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   1.5 !جوملا
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   جوملا! 1.0
  • ↳   الأسئلة الشائـعة
  • ↳   التثبيت
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   الإضافات المعرّبة
  • ↳   القوالب و التصميم
  • ↳   الحماية — تحسين السرعة والأداء — صداقة محركات البحث
  • ↳   القسم العام
  • ↳   القسم العام
  • ↳   !عرض موقعك بجوملا
  • ↳   الأرشيف
  • ↳   Bengali Forum
  • ↳   Bosnian Forum
  • ↳   Joomla! 1.5
  • ↳   Instalacija i prvi koraci
  • ↳   Ekstenzije
  • ↳   Templejti
  • ↳   Moduli
  • ↳   Prevodi i dokumentacija
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Catalan Forum
  • ↳   Notícies
  • ↳   Temes sobre l’administració
  • ↳   Temes sobre la traducció
  • ↳   Components, mòduls i joombots
  • ↳   Temes de disseny
  • ↳   Webs realitzades amb Joomla!
  • ↳   Offtopics
  • ↳   Chinese Forum
  • ↳   Croatian Forum
  • ↳   Danish Forum
  • ↳   Meddelelser
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x (Anbefalet til nye installationer. Nyeste funktionalitet)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Ældre versioner (disse vedligeholdes ikke længere fra officiel side)
  • ↳   Joomla! 2.5 (Supporteres indtil 31. dec. 2014)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.5 (Tidligere langtidssupporteret version indtil sep. 2012)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.0 (Udgået version, der blev afløst af 1.5 i 2008)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Mambots
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Oversættelser (lokalisering)
  • ↳   Joomla brugergrupper i Danmark
  • ↳   JUG Kolding
  • ↳   JUG København
  • ↳   JUG Odense
  • ↳   JUG Århus
  • ↳   JUG Sorø
  • ↳   Kommerciel (betalt) hjælp ønskes
  • ↳   SEO
  • ↳   FAQ — Dokumentation og vejledninger
  • ↳   Vis dit websted
  • ↳   Afviste ‘Vis dit websted’ indlæg
  • ↳   Diverse (Off topic)
  • ↳   Dutch Forum
  • ↳   Aankondigingen
  • ↳   Algemene vragen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Installatie 3.x
  • ↳   Extensies 3.x
  • ↳   Templates 3.x
  • ↳   Joomla! 2.5
  • ↳   Installatie 2.5
  • ↳   Componenten 2.5
  • ↳   Modules 2.5
  • ↳   Plugins 2.5
  • ↳   Templates 2.5
  • ↳   Joomla! 1.5
  • ↳   Installatie
  • ↳   Componenten
  • ↳   Modules
  • ↳   Plugins
  • ↳   Templates
  • ↳   Joomla! 1.0
  • ↳   Installatie 1.0.x
  • ↳   Componenten 1.0.x
  • ↳   Modules 1.0.x
  • ↳   Mambots 1.0.x
  • ↳   Templates 1.0.x
  • ↳   Vertalingen
  • ↳   Offtopic
  • ↳   Show jouw website
  • ↳   Filipino Forum
  • ↳   International Support Center
  • ↳   Pinoy General Discussion & Archives
  • ↳   Site Showcase
  • ↳   Events
  • ↳   Design Tips and Tricks
  • ↳   Tsismis Zone
  • ↳   Pinoy Translation Zone
  • ↳   Pinoy Forum Archives
  • ↳   Joomla! Philippines Local Forum www.joomla.org.ph
  • ↳   Finnish Forum
  • ↳   French Forum
  • ↳   Les annonces!
  • ↳   Le bistrot!
  • ↳   L’expo!
  • ↳   J! 4.x — L’atelier!
  • ↳   J! 3.x — L’atelier!
  • ↳   3.x — Questions générales, nouvel utilisateur
  • ↳   3.x — Installation, migration et mise à jour
  • ↳   3.x — Sécurité et performances
  • ↳   3.x — Extensions tierce partie
  • ↳   3.x — Templates et design
  • ↳   3.x — Développement
  • ↳   3.x — Ressources
  • ↳   J! 2.5.x — L’atelier!
  • ↳   2.5 — Questions générales
  • ↳   2.5 — Installation, migration et mise à jour
  • ↳   2.5 — Sécurité et performances
  • ↳   2.5 — Extensions tierce partie
  • ↳   2.5 — Templates et design
  • ↳   2.5 — Développement
  • ↳   2.5 — Ressources
  • ↳   J! 1.5.x — L’atelier!
  • ↳   1.5 — Questions générales
  • ↳   1.5 — Installation, migration et mise à jour
  • ↳   1.5 — Sécurité et performances
  • ↳   1.5 — Extensions tierce partie
  • ↳   1.5 — Templates et design
  • ↳   1.5 — Développement
  • ↳   1.5 — Ressources
  • ↳   J! 1.0.x — L’atelier!
  • ↳   1.0 — Questions générales
  • ↳   1.0 — Installation et mise à jour
  • ↳   1.0 — Sécurité
  • ↳   1.0 — Extensions tierce partie
  • ↳   1.0 — Templates et design
  • ↳   1.0 — Développement
  • ↳   1.0 — Ressources
  • ↳   Besoin d’un professionel ?
  • ↳   Extensions Open Source pour Joomla!
  • ↳   German Forum
  • ↳   Ankündigungen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 2.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 1.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Professioneller Service
  • ↳   Sonstiges (Offtopic)
  • ↳   Archiv
  • ↳   Joomla! 1.0
  • ↳   Allgemeine Fragen 1.0.x
  • ↳   Installation und erste Schritte 1.0.x
  • ↳   Komponenten, Module, Mambots 1.0.x
  • ↳   Template, CSS und Designfragen 1.0.x
  • ↳   Entwicklerforum 1.0.x
  • ↳   Zeige Deine Webseite 1.0.x
  • ↳   Greek Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.5.x
  • ↳   Joomla! 1.0.x
  • ↳   Hebrew Forum
  • ↳   Indic Languages Forum
  • ↳   Indonesian Forum
  • ↳   FAQ
  • ↳   Bantuan
  • ↳   Komponen
  • ↳   Modul
  • ↳   Template
  • ↳   Diskusi
  • ↳   Italian Forum
  • ↳   Guide
  • ↳   Traduzioni
  • ↳   Componenti — Moduli — Plugins
  • ↳   Template — Grafica
  • ↳   Notizie
  • ↳   Prodotti Open Source per Joomla!
  • ↳   Richieste professionali
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.x
  • ↳   Latvian Forum
  • ↳   Lithuanian Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 1.5
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Joomla! 1.0
  • ↳   Vertimai ir Kalba
  • ↳   Malaysian Forum
  • ↳   Solved
  • ↳   Norwegian Forum
  • ↳   Informasjon
  • ↳   Arkiverte annonseringer
  • ↳   FAQ — Ofte spurte spørsmål
  • ↳   Arkiv
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Netthandel, betaling m.m.
  • ↳   VirtueMart
  • ↳   Andre nettbutikkløsninger
  • ↳   Generelt
  • ↳   Oversettelser
  • ↳   Fremvisning av sider (Show off)
  • ↳   Avviste fremvisninger
  • ↳   Diverse (off topic)
  • ↳   Kommersiell hjelp ønskes
  • ↳   Eldre versjoner av Joomla!
  • ↳   Joomla! 1.0
  • ↳   Administrasjon/installasjon
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/mambots
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 1.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 2.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Persian Forum
  • ↳   قالب ها
  • ↳   مدیریت
  • ↳   سوالهای عمومی
  • ↳   نصب
  • ↳   مامبوت ها
  • ↳   ماژولها
  • ↳   کامپوننت ها
  • ↳   Polish Forum
  • ↳   Instalacja i aktualizacja
  • ↳   Administracja
  • ↳   Komponenty, moduły, wtyczki
  • ↳   Szablony
  • ↳   Paczta i Podziwiajta
  • ↳   Modyfikacje i własne rozwiązania
  • ↳   Tłumaczenia
  • ↳   FAQ
  • ↳   Tips&Tricks
  • ↳   Dokumentacja
  • ↳   Profesjonalne usługi
  • ↳   Portuguese Forum
  • ↳   Componentes, módulos e mambots
  • ↳   Programação e desenvolvimento
  • ↳   Segurança
  • ↳   Sites dos usuários
  • ↳   Off-topic
  • ↳   Tradução
  • ↳   Templates
  • ↳   Romanian Forum
  • ↳   Traduceri
  • ↳   Russian Forum
  • ↳   Объявления по Joomla!
  • ↳   Безопасность Joomla!
  • ↳   Joomla 4.x — Задайте здесь свой вопрос по поддержке
  • ↳   Joomla 3.x — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 3.x
  • ↳   Установка Joomla! 3.x
  • ↳   Миграция и переход на Joomla! 3.x
  • ↳   Расширения для Joomla! 3.x
  • ↳   Многоязычные веб-сайты на Joomla 3.x
  • ↳   Joomla 2.5 — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 2.5
  • ↳   Установка Joomla! 2.5
  • ↳   Расширения для Joomla! 2.5
  • ↳   Русский язык Joomla! 2.5
  • ↳   Serbian/Montenegrin Forum
  • ↳   Tehnička pitanja
  • ↳   Instalacija i početnička pitanja
  • ↳   Šabloni
  • ↳   Prevod i dokumentacija
  • ↳   Ćaskanje
  • ↳   Bezbednost
  • ↳   Joomla! dodaci
  • ↳   Pravna pitanja
  • ↳   Arhiva
  • ↳   Joomla! Događaji i Zajednica
  • ↳   Izlog (spisak) sajtova radjenih u Joomla! CMS-u
  • ↳   Profesionalne usluge
  • ↳   Slovak Forum
  • ↳   Spanish Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Migración y actualización a Joomla 3.x
  • ↳   Versiones de Joomla! obsoletas
  • ↳   Joomla! 2.5
  • ↳   Joomla! 1.5
  • ↳   Extensiones
  • ↳   Plantillas (templates) y diseño
  • ↳   Idioma y traducciones
  • ↳   SEO para Joomla!
  • ↳   Seguridad y rendimiento
  • ↳   Productos de Código Abierto para Joomla!
  • ↳   Servicios profesionales
  • ↳   Salón de la comunidad Ñ
  • ↳   Swedish Forum
  • ↳   Meddelanden
  • ↳   Forum Joomla! 4.x
  • ↳   Forum Joomla! 3.x
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Äldre versioner
  • ↳   Forum Joomla! 1.0
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och Mambots
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.7 / Joomla! 1.6
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 2.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Översättning
  • ↳   Webbplatser gjorda i Joomla
  • ↳   Webbplatser J! 3.x
  • ↳   Webbplatser J! 2.5
  • ↳   Webbplatser Joomla! 1.7 / Joomla! 1.6
  • ↳   Webbplatser J! 1.5
  • ↳   Webbplatser J! 1.0
  • ↳   Kommersiell hjälp önskas
  • ↳   Diverse (off topic)
  • ↳   Tamil Forum
  • ↳   Thai Forum
  • ↳   โชว์เว็บไซต์ของคุณที่สร้างด้วยจูมล่า
  • ↳   เคล็ดลับการใช้งานส่วนต่างๆ เกี่ยวกับจ&#
  • ↳   คอมโพเน้นท์ โมดูล ปลักอิน ต่างๆ ที่ติดตั
  • ↳   อับเดดข่าวสารเกี่ยวกับจูมล่าลายไทย
  • ↳   Turkish Forum
  • ↳   Duyurular
  • ↳   Dersler
  • ↳   Genel Sorular
  • ↳   Bileşen, Modül, Bot
  • ↳   Eklenti Haberleri
  • ↳   Temalar
  • ↳   Vietnamese Forum
  • ↳   Gặp gỡ và giao lưu
  • ↳   Joomla Tiếng Việt
  • ↳   Cài đặt — Cấu hình
  • ↳   Thành phần mở rộng cho Joomla!
  • ↳   Hỏi đáp Joomla! 3.x
  • ↳   Hỏi đáp Joomla! 2.5
  • ↳   Hỗ trợ kỹ thuật
  • ↳   Bài viết cũ
  • ↳   Thiết kế Template
  • ↳   Joomla! 1.5
  • ↳   Hỏi đáp Joomla! 4.x
  • ↳   Welsh Forum
  • Other Forums
  • ↳   Open Source Products for Joomla!
  • ↳   The Lounge
  • ↳   Forum Post Assistant (FPA)
  • Joomla! Development Forums
  • Joomla! Official Sites & Infrastructure
  • ↳   docs.joomla.org — Feedback/Information
  • ↳   extensions.joomla.org — Feedback/Information
  • ↳   joomla.com — Feedback/Information
  • ↳   Sites & Infrastructure — Feedback/Information
  • ↳   Archived Boards — All boards closed
  • ↳   Design and Accessibility — Archived
  • ↳   Quality and Testing — Locked and Archived
  • ↳   Joomla! 1.0.x_Q&T
  • ↳   Q&T 1.0.x Resolved
  • ↳   Known Issues
  • ↳   Superseded Issues
  • ↳   Archive
  • ↳   Q&T 1.0.x Resolved — Archived
  • ↳   Known Issues — Archive
  • ↳   Superseded Issues — Archive
  • ↳   Joomla! 3.x Bug Reporting
  • ↳   Third Party Testing for Joomla! 1.5
  • ↳   Q&T 1.5.x Resolved
  • ↳   Joomla! 1.5 BETA
  • ↳   Joomla! 1.5 BETA 2
  • ↳   Reaction to the ‘Letter to the community’
  • ↳   Reaction to New Project Name
  • ↳   Logo Competition
  • ↳   Humor, Fun and Games
  • ↳   Libraries
  • ↳   patTemplate
  • ↳   com_connector — Multi Joomla Bridge
  • ↳   CiviCRM Support
  • ↳   CiviCRM Installation Issues
  • ↳   FAQ Archive
  • ↳   FAQ Discussion Board
  • ↳   3rd Party Extensions FAQ
  • ↳   FAQs not moved
  • ↳   3rd Party/Non Joomla! Security FAQ
  • ↳   Joomla! Coding 101
  • ↳   Joombie Tools of the Trade
  • ↳   Joombie Coding Q/A
  • ↳   Joombie Think Tank
  • ↳   Joombie Developer Lab
  • ↳   Joomla Forge — Archived
  • ↳   Non-Profit Organizations and Joomla!
  • ↳   Schools and Universities
  • ↳   Bangsamoro Forum
  • ↳   Joomla! 1.5 Template Contest
  • ↳   SMF — Simplemachines.org Forum
  • ↳   GPL Discussion
  • ↳   Security Announcements — Old
  • ↳   Tips & Tricks — Moving
  • ↳   Submit Your Suggested Tips & Tricks to Docs.joomla.org now please.
  • ↳   Google Summer of Code and GHOP
  • ↳   Google Summer of Code 2008
  • ↳   Proposed projects
  • ↳   Student area
  • ↳   Past Google Summer of Code Editions
  • ↳   Google’s Highly Open Participation Contest
  • ↳   Documentation
  • ↳   Suggestions, Modifications, and Corrections
  • ↳   Archive
  • ↳   1.5 Archive
  • ↳   Suggestions, Modifications & Corrections
  • ↳   Submit
  • ↳   Feedback and Suggestions
  • ↳   Applications for participation in the Development Workgroup
  • ↳   Development
  • ↳   1.5 Site Showcase — Archived
  • ↳   1.0 x Site Showcase — Archived.
  • ↳   Feature Requests — White Papers — Archived
  • ↳   Under Review — Archived
  • ↳   Accepted — Archived
  • ↳   Not Accepted — Archived
  • ↳   Wishlists and Feature Requests — Archive
  • ↳   Wishlist Archives — Archived
  • ↳   Spanish Forum — Archive
  • ↳   Papelera
  • ↳   Tutoriales
  • ↳   General
  • ↳   Salón de la Joomlaesfera hispanohablante
  • ↳   Danish Forum — Archive
  • ↳   Diskussion af Meddelelser + Sikkerhedsmeddelelser + FAQ
  • ↳   Shop.Joomla.org
  • ↳   Joomla! 1.6 RC Support [closed]
  • ↳   Joomla! 1.0 Coding
  • ↳   Core Hacks and Patches
  • ↳   Joomla! 2.5 Beta Support
  • ↳   People.joomla.org — Feedback/Information
  • ↳   Joomla! 1.5 Bug Reporting
  • ↳   Joomla! 1.5 Coding
  • ↳   Joomla! 3 Beta Support
  • ↳   Trending Topics
  • ↳   Help wanted in the community
  • ↳   templates.joomla.org — Feedback/Information
  • ↳   Certification
  • ↳   Albanian Forum
  • ↳   Azeri Forum
  • ↳   Urdu Forum
  • ↳   Basque Forum
  • ↳   Itzulpenaren inguruan
  • ↳   Laguntza teknikoa
  • ↳   Belarusian Forum
  • ↳   Maltese Forum
  • ↳   Hungarian Forum
  • ↳   Slovenian Forum
  • ↳   Japanese Forum
  • ↳   Khmer Forum
  • ↳   ពិពណ៌​ស្ថាន​បណ្ដាញ​ជុំឡា
  • ↳   ជុំឡា​ខ្មែរ​មូលដ្ឋានីយកម្ម
  • ↳   Community Blog Discussions
  • ↳   JoomlaCode.org
  • ↳   Joomla! Marketing and PR Team
  • ↳   resources.joomla.org — Feedback/Information
  • ↳   Training.Joomla.org
  • ↳   OpenSourceMatters.org
  • ↳   magazine.joomla.org — Feedback/Information
  • ↳   Site Showcase
  • ↳   Joomla! 4 Related
  • ↳   Joomla! Events
  • ↳   Joomla! Ideas Forum
  • ↳   Registered Joomla! User Groups
  • ↳   Joomla! 2.5 Coding
  • ↳   Joomla! 2.5 Bug Reporting
  • ↳   User eXperience (UX)
  • ↳   Joomla! Working Groups
  • ↳   Translations

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.

John Conde's user avatar

John Conde

217k99 gold badges455 silver badges496 bronze badges

asked May 21, 2015 at 18:18

Pablo Lopez's user avatar

2

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.

Chin's user avatar

Chin

19.5k37 gold badges104 silver badges164 bronze badges

answered Aug 5, 2015 at 16:43

malajisi's user avatar

malajisimalajisi

2,1451 gold badge22 silver badges18 bronze badges

1

This worked for me:

Check path of your application, by

<?php
   $path = getcwd();
   echo "Your Absolute Path is:" . $path;
?>  

then set

$log_path = 'Your Absolute Path'/logs

If it does not solve issue, then

First check in ssh who owns the /var/www directory by:

ls -la /var

Then check what user apache uses

ps aux | grep apache

or you can use:

ps aux | grep http

output:

apache   29672  0.0  1.3 388232 14240
root     29679  0.0  0.2 110456  2252  

in my case apache user for /var/www was apache

so after this I made apache the owner of /var/www by:

sudo chown -R apache /var/www

I'm Geeker's user avatar

I’m Geeker

4,5865 gold badges22 silver badges41 bronze badges

answered Jun 30, 2016 at 10:08

Satyanarayana's user avatar

It is easy to resolve.
Access configuration.php using FTP or cpanel.
Edit directly in cpanel or download it to your computer using ftp.
Edit the Log and Tmp paths to …/log and …/tmp respectly.
That solves it.
Get back on Joomla backend to verify by Accessing System>>System Information>>Directory Permissions.
Hope that helps.

answered Mar 15, 2016 at 23:39

Odudu Udocox's user avatar

Материал из Wiki — Iphoster — the best ever hosting and support. 2005 — 2023

Перейти к:навигация, поиск

Доступная цена

Joomla 3 — при обновлении — 0 Cannot open file for writing log

Если при обновлении в админке возникает ошибка вида:

0 Cannot open file for writing log

нужно подправит пути в конфиг файле configuration.php:

       public $log_path = '/home/user1/public_html/site.ru/logs';
       public $tmp_path = '/home/user1/public_html/site.ru/tmp';

и поставить на них права 777

Источник — https://wiki.iphoster.net/index.php?title=Joomla_3_-_при_обновлении_-_0_Cannot_open_file_for_writing_log&oldid=3473

Понравилась статья? Поделить с друзьями:
  • Ошибка kernel auto boost invalid lock
  • Ошибка kernel mode heap corruption windows 10 как исправить
  • Ошибка join clan room wot
  • Ошибка kerberos ticket expired 0x96c73a20
  • Ошибка java install in progress