It's better when it's simple

User Tools

Site Tools


Error writing files and directories

:?: While using DokuWiki, I'm often getting errors reading: “Writing xyz failed”. How come?

:!: If you made sure your permissions are correct, you're most probably with a webhost which has enabled PHP's Safe Mode. Unfortunately, this keeps DokuWiki from writing to directories using the web interface, because all actions are triggered with the user ID of the wwwuser, but only the FTP user is allowed to write to the directories on your webspace.

There are two solutions to this problem:

  1. Get your hoster to disable the the safemode option or find another provider.
  2. Try using DokuWiki's built-in workaround known as the safemode hack.

Another issue arises when your webserver is protected by SELinux (in /etc/selinux/config, there is SELINUX=Enforcing), in this case, take a look at : Gallery2 on a SELinux Server to solve the problem.

This error also may be associated with your system constraint on the length of the filename (path + name). For example in the ext3 file system, this limitation 254 bytes.

faq/write_errors.txt · Last modified: 2011-01-14 12:11 by

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki