Обнаружена ошибка 0 cannot write to log file

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

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

при входе в админку выдаёт Ошибка 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

Moderator: General Support Moderators

pfaniel

Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 05, 2011 3:23 pm
Location: Bruxelles
Contact:

Cannot write to log file

Hello,

I try to upgrade my Joomla! environment from version 3.6.2 to 3.6.4.

When I click on the button «Joomla! 3.6.4 is available: Update now» of the control panel of my Joomla admin environment and then I click on the button named «Install the update» with the installation method «Write files directly», I receive a page telling me this: «An error has occurred. 0 Cannot write to log file.»

I have never had such a situation although I use Joomla for years.

I went to different sites to find a solution to the issue, but nothing works.

I checked the permissions on the folders /home/mysite/www/logs and /home/mysite/www/tmp. They are both set to 666. I also tried with 777, but nothing works. When, in my Joomla admin environment, I go to the page «System Information» > «Folder Permissions», I see that the folders names «/home/mitservifc/www/logs (Log folder)» and «/home/mitservifc/www/tmp (Temp folder)» are «Unwritable» whatever I do with the permissions via cPanel.

My configuration file «configuration.php» file seems to be perfectly correct, i.e. the names perfectly match the names mentionned in the cPanel of my site.

I do not see what to do to progress with this issue.

Could somebody help me ?

Thank you in advance.

Pierre Faniel


User avatar

AMurray

Joomla! Exemplar
Joomla! Exemplar
Posts: 8784
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Cannot write to log file

Post

by AMurray » Sat Oct 29, 2016 11:52 pm

Your file permissions are supposed to be 755 for folders, 644 for files (that’s the recommended settings stated in the Joomla documentation site). You don’t mention trying these specific ones in your question.

Regards — A Murray



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 write to log file

Post

by leolam » Sun Oct 30, 2016 8:21 am


pfaniel

Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 05, 2011 3:23 pm
Location: Bruxelles
Contact:

Re: Cannot write to log file

Post

by pfaniel » Sun Oct 30, 2016 1:24 pm

Hello,

Thanks to the recommendations of AMurray and leolam to apply both the set of permissions 755 to the folders and go in search of the absolute path of my site, I succeeded in installing the version 3.6.4 of Joomla!.

Thank you very much for your help.

Kind regards

Pierre Faniel


Stikine Freak

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 07, 2016 7:48 pm

Re: Cannot write to log file

Post

by Stikine Freak » Tue Nov 08, 2016 8:14 pm

I have the same message for this site:
http://www.karenstewartlaw.ca

The ‘logs’ folder permission in the administration folder is set to 755
The following files are inside this logs folder…
error.php
index.html
joomla_update.php
And all of these permissions are set to 644.

Is there something else I can do to enable the 3.6.4 update procedure.

Thanks,

Tony


User avatar

AMurray

Joomla! Exemplar
Joomla! Exemplar
Posts: 8784
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Cannot write to log file

Post

by AMurray » Fri Nov 11, 2016 8:43 am

Could you run the FPA Report on your joomla installation — script available at this link:
http://forum.joomla.org/viewtopic.php?f=621&t=582860

Once you run the script it should produce its report in a format suitable for this forum, you can post the results into a new reply. This will give an overview of your joomla installation and basica detail about your hosting environment.

Regards — A Murray


ve9gfi

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Apr 21, 2017 8:48 pm

Re: Cannot write to log file

Post

by ve9gfi » Fri Apr 21, 2017 8:58 pm

Hi All,

I spent this afternoon dealing with this exact issue, after performing a fresh install.

I followed the hardening guidelines, file permissions, edits to php.ini, etc, and while that was good to do, it didn’t solve anything.

I took a walk, and returned … and voila!

The login to my site is asking for «Username» … my browser was pre-filling the page with my email address.

Once I put in the username (which looks quite like my email) … everything worked.

Hopefully you will benefit from my mistake.

Greg



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

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.

Материал из 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

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 badges163 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

Понравилась статья? Поделить с друзьями:
  • Обнаружена ошибка 0 cannot open file for writing log
  • Обнаружена общая ошибка потока gstreamer
  • Обнаружена неустранимая ошибка directx call of duty warzone
  • Обнаружена непредвиденная ошибка службы теневого копирования томов 0x80042302 виндовс
  • Обнаружена непредвиденная ошибка компонента службы теневого копирования томов 0x80042302