We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43347
    • 1 Posts
    Приветствую.

    Сегодня столкнулся с очень странной ошибкой - при установке или переносе существующего сайта на хостинг, Modx revo ругается:
    [Thu Apr 11 12:03:35 2013] [error] PHP Warning:  file_put_contents() [<a href='function.file-put-contents'>function.file-put-contents</a>]: open_basedir restriction in effect. File(/var/tmp/wrtnssAuw) is not within the allowed path(s): (/compnet/hosting4clients/httpd/mf-erten.ru) in /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_write_file.php on line 33
    [Thu Apr 11 12:03:35 2013] [error] PHP Warning:  file_put_contents(/var/tmp/wrtnssAuw) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Operation not permitted in /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_write_file.php on line 33
    [Thu Apr 11 12:03:35 2013] [error] PHP Fatal error:  Uncaught exception 'SmartyException' with message 'unable to write file /var/tmp/wrtnssAuw' in /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_write_file.php:35\nStack trace:\n#0 /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_template.php(271): Smarty_Internal_Write_File::writeFile('/compnet/hostin...', NULL, Object(modInstallSmarty))\n#1 /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_template.php(412): Smarty_Internal_Template->compileTemplateSource()\n#2 /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_template.php(554): Smarty_Internal_Template->renderTemplate()\n#3 /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate()\n#4 /compnet/hosting4clients/httpd/mf-erten.ru/docs/setup/includes/request/modinstallrequest.class.php(83): Smarty->fetch('header.tpl')\n in /compnet/hosting4clients/httpd/mf-erten.ru/docs/core/model/smarty/sysplugins/smarty_internal_write_file.php on line 35
    

    Файлы кеша при этом создаются, НО с правами 755 (чтение и выполнение), а владельцем файлов устанавливается nobody, т.е. я даже не могу поправить права на доступ к файлам.

    Эти 3 ошибки вылезают при установке, а при переносе существующего сайта - только последняя (Uncaught exception 'SmartyException' with message 'unable to write file /var/tmp/wrtnssAuw').

    Очень прошу помощи - сайт для компании очень важен и такой сбой может выйти боком. Чего я уже не перепробовал - и выставлял через консоль права, и запускал httpd от имени нужного пользователя - без сдвигов.