Перенос сайта на Timeweb: не открываются ресурсы

Здравствуйте! Перенесли сайт на хостинг Timeweb. К сожалению, так решило руководство...(((
Обнаружены ошибки:

1. Каталог ядра в открытом доступе
«MODX обнаружил, что ваш основной каталог (частично) доступен для общественности. Это не рекомендуется из соображений безопасности. Если ваша установка MODX выполняется на веб-сервер Apache, вам следует по крайней мере настроить файл .htaccess внутри каталога с файлами ядра: /home/c/cx13714/humanitar/public_html/core/. Это можно легко сделать, переименовав уже имеющийся там файл ht.access в .htaccess. »

2. Конфигурационный файл открыт для записи!
«Ваш сайт является уязвимым для хакеров, которые могут нанести серьёзный вред вашему сайту. Пожалуйста, сделайте конфигурационный файл доступным только для чтения! Файл находится в /home/c/cx13714/humanitar/public_html/core/config/config.inc.php »

По факту не работает всё, что связано с разделом ресурсов. При переходе в редактор конкретной страницы сайт не может обработать этот запрос, пишет, что страница недоступна (код ошибки HTTP ERROR 500).



Содержимое .htaccess:

RewriteEngine On
RewriteBase /
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
#from_vasiliy_naumkin
RewriteCond %{REQUEST_URI} ^/config.core.php*
RewriteRule ^(.*)$ [R=404]
RewriteCond %{REQUEST_URI} ^/core/*
RewriteRule ^(.*)$ [R=404]
php_flag register_globals Off
php_value default_charset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml

core/.htaccess:

# deny access to _all_ files in the core, including changelog.txt and error.log
# line below if for Apache 2.4
<ifModule mod_authz_core.c>
    Require all denied
</ifModule>
# line below if for Apache 2.2
<ifModule !mod_authz_core.c>
    deny from all
    Satisfy All
</ifModule>
<Files *.*>
    Order Deny,Allow
    Deny from all
</Files>
# section for Apache 2.2 and 2.4
IndexIgnore *

manager/.htaccess:

RewriteEngine Off

Подскажите, пожалуйста, в чем причина? Где искать?
Дарья Сизова
14 декабря 2017, 06:23
modx.pro
1 905
0

Комментарии: 5

Вячеслав Варов
14 декабря 2017, 10:09
0
Для начала нужно проверить правильно ли перенесли, проверьте все записи что меняли, в файлах
/core/config/config.inc.php
/config.core.php
/connectors/config.core.php
/manager/config.core.php
Затем проверте права доступа к файлам, если не получается, то на старом хостинге все файлы сайта добавьте в архив 7z и перенесите его на таймвеб и повторите процедуру переноса еще раз.
Мне помогает такая процедура во всех проблемах с переносом
    Дарья Сизова
    14 декабря 2017, 12:44
    0
    Проверила все указанные файлы, пути везде одинаково правильно изменены. \
    Права доступа к /core/config/config.inc.php изменила на 600 (благодаря этому одна из ошибок исчезла). Но в редактор ресурсов по-прежнему не войти — ошибка 500.

    Можно ли что-то еще сделать, не перезаливая сайт?

    Вот последний фрагмент лога ошибок modx
    [2017-12-14 12:14:31] (ERROR in resource 310 @ /home/c/cx13714/humanitar/public_html/core/model/modx/modparser.class.php: 1352) Bad link tag `[[~185]]` encountered
    [2017-12-14 12:14:32] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:14:32] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:14:32] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:14:32] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    [2017-12-14 12:14:41] (ERROR in resource 238 @ /home/c/cx13714/humanitar/public_html/core/model/modx/modparser.class.php: 1352) Bad link tag `[[~185]]` encountered
    [2017-12-14 12:14:42] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:14:42] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:14:42] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:14:42] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    [2017-12-14 12:14:43] (ERROR in resource 61 @ /home/c/cx13714/humanitar/public_html/core/model/modx/modparser.class.php: 1352) Bad link tag `[[~185]]` encountered
    [2017-12-14 12:14:44] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:14:44] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:14:44] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:14:44] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    [2017-12-14 12:14:50] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:14:50] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:14:50] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:14:50] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    [2017-12-14 12:14:56] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:14:57] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:14:57] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:14:57] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    [2017-12-14 12:14:57] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:14:58] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:14:58] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:14:58] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    [2017-12-14 12:15:01] (ERROR in resource 9 @ /home/c/cx13714/humanitar/public_html/core/model/modx/modparser.class.php: 1352) Bad link tag `[[~185]]` encountered
    [2017-12-14 12:15:05] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #2 is not an array
    [2017-12-14 12:15:05] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 159) PHP warning: array_merge(): Argument #1 is not an array
    [2017-12-14 12:15:05] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 164) PHP warning: usort() expects parameter 1 to be array, null given
    [2017-12-14 12:15:05] (ERROR @ /home/c/cx13714/humanitar/public_html/core/cache/includes/elements/modsnippet/52.include.cache.php: 167) PHP warning: array_slice() expects parameter 1 to be array, null given
    Вячеслав Варов
    14 декабря 2017, 14:59
    0
    Удалите все из папки core/cache
    Alexander Antonov
    02 мая 2018, 21:03
    0
    удаление core/cache помогло. спасибо
      Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
      5