«ДокуВики» — Настройки: safemodehack

DokuWiki.org, “DokuWiki — Configuration Setting: safemodehack”, public translation into Russian from English More about this translation.

See also 22 similar translations

Translate into another language.

Participants

alexgearbox93 points
userpiv11 points
KiDoki7 points
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next next untranslated
1 2 3 4

DokuWiki — Configuration Setting: safemodehack

«ДокуВики» — Настройки: safemodehack

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

====== Configuration Setting: safemodehack ======

====== Настройки: safemodehack ======

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

This tries to solve bug [[bug>179]] where DokuWiki can not write to directories it created itself. It does so by using FTP to log into your server and creating the directory that way. It requires the FTP PHP module to be installed on the server.

---------

----

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

* Type: Boolean

* Тип данных: логический

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

* Default: 0

* Значение по умолчанию: 0

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

As the name suggests, this is a hack and not recommended. Safemode itself is a setting that even the developers of PHP despise, it will be removed from future PHP versions all together.

If you can, disable PHP's safemode instead of using this hack. Many providers will disable it for your site if you ask them nicely.

===== When to use this hack =====

===== Когда использовать этот хак =====

History of edits (Latest: alexgearbox 2 weeks, 2 days ago) §

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:

- safe_mode = On

- safe_mode = On

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

- safe_mode_gid = Off

- safe_mode_gid = Off

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

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

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

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

The directory ''..../data/cache/9/'' will exist((check this, if doesn't exist you probably have a different problem)) 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.

===== Usage =====

===== Использование =====

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

To enable it, set ''safemodehack'' to ''1'' and enter your FTP credentials into the config file. (i.e. ''conf/local.php'' Or just go to the [[plugin:config|Configuration Manager]], which offers a great GUI for changing settings of DokuWiki.)

If you have already tried running DokuWiki without the [[safemodehack|Safemodehack Option]], you have to **remove the subdirectories of /data/cache** to have them recreated with the correct UID in order for everything to work.

Example Config:

Пример конфигурации:

History of edits (Latest: alexgearbox 1 year, 5 months ago) §

<code php>

<code php>

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

$conf['safemodehack'] = 1;

$conf['safemodehack'] = 1;

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

$conf['ftp']['host'] = 'localhost';

$conf['ftp']['host'] = 'localhost';

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

$conf['ftp']['port'] = '21';

$conf['ftp']['port'] = '21';

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

$conf['ftp']['user'] = 'user';

$conf['ftp']['user'] = 'user';

History of edits (Latest: alexgearbox 1 year, 7 months ago) §

— Логин должен быть набран только с использованием латинских символов, поэтому — user; переводить не надо. alexgearbox

$conf['ftp']['pass'] = 'password'; // plain text (see below)

$conf['ftp']['pass'] = 'password'; // простой текст (см. ниже)

History of edits (Latest: alexgearbox 1 year, 7 months ago) §
Pages: ← previous Ctrl next next untranslated
1 2 3 4

© Андреас Гор и сообщество «ДокуВики». License: CC Attribution-Noncommercial-Share Alike 3.0 Unported