====== Error writing files and directories ====== :?: While using DokuWiki, I'm often getting errors reading: "Writing xyz failed". How come? :!: If you made sure your [[install:permissions]] are correct, you're most probably with a webhost which has enabled [[http://www.php.net/features.safe-mode|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: - Get your hoster to disable the the safemode option or find another provider. - Try using DokuWiki's built-in workaround known as the [[:config:safemodehack|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 : [[http://codex.gallery2.org/index.php/Gallery2:Installation_on_a_SELinux_Server|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.