ОсновноеRadiotalkПользовательское
Webserv24 - Панель управления хостингом
10   •   Посмотреть все темы

Каталог tmp в drupal 7

 

4
jura12 @jura12
Отчет о состоянии выдает красным ошибку:
Temporary files directory Not fully protected
See ********** for information about the recommended .htaccess file which should be added to the /tmp directory to help protect against arbitrary code execution.

как защитить понятно. надо записать в .htaccess
# Turn off all options we don't need.
Options None
Options +FollowSymLinks

# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>

# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>

вопрос где взять каталог tmp. или надо как-то его надо переназначить?

6600
Александр @admiral
По ссылке ********** есть информация по файлам htaccess, вы скорее всего обновляете drupal, смотрите эту тему на сайте друпала - **********

4
jura12 @jura12
помогло :
mamba в Пт, 21/03/2014 - 10:09.
Аватар пользователя mamba

Нужно зайти на /admin/config/media/file-system
удалить слеш перед tmp

6600
Александр @admiral
Еще помогает прочтение документации 😀