DokuWiki

It's better when it's simple

User Tools

Site Tools


config:safemodehack

This is an old revision of the document!


When to use this hack

On some hosts with restrictive settings there are limitations on PHP's filesystem functions, e.g. mkdir() etc. To be more specific, the settings are:

  1. safe_mode = On
  2. safe_mode_gid = Off

A first indication for the need of the SafeMode Hack is the encounter of error messages like this:

Writing ....../data/cache/9/9243162ecf6295fc6a1c487ca46c20fe.i failed

The directory …./data/cache/9/ will exist1) but it will not be writable by DokuWiki. This is a typical symptom of the safe mode restriction. DokuWiki can't write to directories created by it self.

Security Warning

Using this method requires your ftp password to be stored in plain text in one of DokuWiki's configuration files. These files may be world readable.

Since Release Candidate 2009-01-26 the password may be obscured2) by being uuencoded. Setting the password using the admin/config settings page will do this automatically.

See also

1)
check this, if doesn't exist you probably have a different problem
2)
this is not meant to be security, simply to prevent casual revelation
config/safemodehack.1307603289.txt.gz · Last modified: 2011-06-09 09:08 by 90.132.213.19

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