HestiaCP - 500 - Internal server error

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2025
Перейти к:навигация, поиск

HestiaCP - 500 - Internal server error

Логи

tail -f /usr/local/hestia/log/*log
[error] 9227#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be  of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}


Решение:

# cp /usr/local/hestia/install/common/sudo/hestiaweb /etc/sudoers.d/
# chown hestiaweb:hestiaweb /run/hestia-php.sock
# chown -R hestiaweb:hestiaweb /usr/local/hestia/data/sessions


и рестарт панели:

# systemctl restart hestia