---
title: "Cannot write to log file"
date: 2020-05-01
description: "When the log file cannot be opened or written into, the error is displayed. Here you can read how to solve this problem."
author: "Jeroen Moolenschot"
---

# Cannot write to log file

When someone tries to log in with incorrect login credentials in the administrator area of Joomla, the system records that attempt in a log file. If the log file cannot be opened or written into, the error is displayed.

 
## Check if the /logs folder is present

 Go to your Joomla site using FTP or open it in a file manager from your hosting control panel in cPanel, DirectAdmin or Plesk.

 Look for a folder named /logs and if it does not exist, create it. (use write permissions 0755). It is also possible depending on your first Joomla installation that the folder is placed in the /administrator/logs folder

 
## Check the write permissions in Joomla

 In your Joomla administrator environment, go to System > System Information and open the "Folder Permissions" tab.

 Check here that the folder "/logs" is writable by Joomla

 ![Write to log logsmap](https://www.joomill.com/images/kennisbank/write-to-log-logsmap.png)

 
## Check if the /logs folder is correctly filled in General Configuration

 In your Joomla administrator environment, go to System > General Settings and on the "System" tab.

 Check that the path in the "Path to log folder" field matches the server path to your /logs folder. When in doubt, consult your hosting

 If you have moved your website to a new hosting party, be sure to check this.

 
## The result

 When you have fixed this problem, you will get (when trying to log in with an incorrect password) this message

 ![wachtwoord niet correct j4](https://www.joomill.com/images/kennisbank/wachtwoord-niet-correct-j4.png)


## Custom Fields

**Call2Action Titel:** Need help solving this problem?

