Can’t connect to admin panel.
Getting error please help:
/var/log/hestia/nginx-error.log
connect() to unix:/var/run/hestia-php.sock failed (13: Permission denied) while connecting to upstream
service hestia status
● hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: active (running) since Fri 2025-03-21 18:50:27 IST; 12min ago
Docs: man:systemd-sysv-generator(8)
Process: 233829 ExecStart=/etc/init.d/hestia start (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 18491)
Memory: 6.8M
CPU: 131ms
CGroup: /system.slice/hestia.service
├─233834 "nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx"
├─233835 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
└─233837 "php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)"
Mar 21 18:50:26 bs1.tempurl.info systemd[1]: Starting LSB: starts the hestia control panel...
Mar 21 18:50:26 bs1.tempurl.info hestia[233829]: * Starting hestia-nginx hestia-nginx
Mar 21 18:50:26 bs1.tempurl.info hestia[233829]: ...done.
Mar 21 18:50:26 bs1.tempurl.info hestia[233829]: * Starting hestia-php hestia-php
Mar 21 18:50:27 bs1.tempurl.info hestia[233829]: ...done.
Mar 21 18:50:27 bs1.tempurl.info systemd[1]: Started LSB: starts the hestia control panel.
/usr/local/hestia/php/etc/php-fpm.conf
[global]
pid = /run/hestia-php.pid
daemonize = yes
log_level = error
emergency_restart_threshold = 10
emergency_restart_interval = 60s
process_control_timeout = 10s
events.mechanism = epoll
[www]
listen = /run/hestia-php.sock
user = hestiaweb
group = hestiaweb
listen.owner = hestiaweb
listen.group = hestiaweb
listen.mode = 0660
pm = ondemand
pm.max_children = 4
pm.max_requests = 1000
pm.process_idle_timeout = 10s;
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
env[HESTIA] = $HESTIA
env[LANG] = en_US.UTF-8
php_flag[display_errors] = off
php_admin_flag[log_errors] = on
php_admin_flag[session.cookie_httponly] = on
php_admin_flag[session.use_strict_mode] = on
php_admin_flag[session.cookie_secure] = on
php_admin_value[session.cookie_samesite] = "Strict"
php_admin_value[memory_limit] = 256M
php_admin_value[post_max_size] = 256M
php_admin_value[upload_max_filesize] = 256M
php_admin_value[max_execution_time] = 300
php_admin_value[max_input_time] = 300
php_admin_value[session.save_path] = /usr/local/hestia/data/sessions
ls /run -l
-rw-r--r-- 1 root root 7 Mar 21 18:50 hestia-nginx.pid
-rw-r--r-- 1 root root 6 Mar 21 18:50 hestia-php.pid
srw-rw---- 1 hestiaweb hestiaweb 0 Mar 21 18:50 hestia-php.sock
Show the output of these commands:
lsof -Pn +c0 -i:8083 -sTCP:LISTEN
grep -rE 'hestia-php|hestiaweb' /usr/local/hestia/nginx/
lsof -Pn +c0 -i:8083 -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
hestia-nginx 233834 root 6u IPv4 298201807 0t0 TCP *:8083 (LISTEN)
hestia-nginx 233835 admin 6u IPv4 298201807 0t0 TCP *:8083 (LISTEN)
grep -rE ‘hestia-php|hestiaweb’ /usr/local/hestia/nginx/
/usr/local/hestia/nginx/conf/nginx.conf: fastcgi_pass unix:/var/run/hestia-php.sock;
/usr/local/hestia/nginx/conf/nginx.conf: fastcgi_pass unix:/var/run/hestia-php.sock;
Hestia is not running under hestiaweb user, it is using the old admin user, also, not using the right path for php sock.
Reinstall Hestia:
apt update
apt full-upgrade
apt remove hestia-nginx hestia-php
apt install bubblewrap
apt install --reinstall hestia
apt install hestia-nginx hestia-php
Done
Unable to load required libraries. Please run v-add-sys-dependencies in command line. Error: Failed opening required 'vendor/autoload.php' (include_path='.:')
Run:
v-add-sys-dependencies
After it 500 error
/var/log/hestia/nginx-error.log
2025/03/21 22:54:01 [error] 605980#0: *9 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}
thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 95.111.251.149, server: _, request: "GET /login/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "bs1.tempurl.info:8083"
service hestia status
● hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: active (running) since Fri 2025-03-21 22:50:16 IST; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 605973 ExecStart=/etc/init.d/hestia start (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 18491)
Memory: 7.6M
CPU: 454ms
CGroup: /system.slice/hestia.service
├─605979 "nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx"
├─605980 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
└─605982 "php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)"
Mar 21 22:54:00 bs1.tempurl.info sudo[607528]: hestiaweb : user NOT in sudoers ; PWD=/usr/local/hestia/web/login ; USER=root ; COMMAND=/usr/local/hestia/bin/v-list-sys-config json
Mar 21 22:54:00 bs1.tempurl.info sudo[607530]: pam_unix(sudo:auth): conversation failed
Mar 21 22:54:00 bs1.tempurl.info sudo[607530]: pam_unix(sudo:auth): auth could not identify password for [hestiaweb]
Mar 21 22:54:00 bs1.tempurl.info sudo[607530]: hestiaweb : user NOT in sudoers ; PWD=/usr/local/hestia/web/login ; USER=root ; COMMAND=/usr/local/hestia/bin/v-list-sys-config json
Mar 21 22:54:00 bs1.tempurl.info sudo[607532]: pam_unix(sudo:auth): conversation failed
Mar 21 22:54:00 bs1.tempurl.info sudo[607532]: pam_unix(sudo:auth): auth could not identify password for [hestiaweb]
Mar 21 22:54:00 bs1.tempurl.info sudo[607532]: hestiaweb : user NOT in sudoers ; PWD=/usr/local/hestia/web/login ; USER=root ; COMMAND=/usr/local/hestia/bin/v-list-sys-config json
Mar 21 22:54:01 bs1.tempurl.info sudo[607534]: pam_unix(sudo:auth): conversation failed
Mar 21 22:54:01 bs1.tempurl.info sudo[607534]: pam_unix(sudo:auth): auth could not identify password for [hestiaweb]
Mar 21 22:54:01 bs1.tempurl.info sudo[607534]: hestiaweb : user NOT in sudoers ; PWD=/usr/local/hestia/web/login ; USER=root ; COMMAND=/usr/local/hestia/bin/v-list-sys-languages json
/usr/local/hestia/php/etc/php-fpm.conf
[global]
pid = /run/hestia-php.pid
daemonize = yes
log_level = error
emergency_restart_threshold = 10
emergency_restart_interval = 60s
process_control_timeout = 10s
events.mechanism = epoll
[www]
listen = /run/hestia-php.sock
user = hestiaweb
group = hestiaweb
listen.owner = hestiaweb
listen.group = hestiaweb
listen.mode = 0660
pm = ondemand
pm.max_children = 4
pm.max_requests = 1000
pm.process_idle_timeout = 10s;
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
env[HESTIA] = $HESTIA
env[LANG] = en_US.UTF-8
php_flag[display_errors] = off
php_admin_flag[log_errors] = on
php_admin_flag[session.cookie_httponly] = on
php_admin_flag[session.use_strict_mode] = on
php_admin_flag[session.cookie_secure] = on
php_admin_value[session.cookie_samesite] = "Strict"
php_admin_value[memory_limit] = 256M
php_admin_value[post_max_size] = 256M
php_admin_value[upload_max_filesize] = 256M
php_admin_value[max_execution_time] = 300
php_admin_value[max_input_time] = 300
php_admin_value[session.save_path] = /usr/local/hestia/data/sessions
ls /run -l
-rw-r--r-- 1 root root 7 Mar 21 22:50 hestia-nginx.pid
-rw-r--r-- 1 root root 6 Mar 21 22:50 hestia-php.pid
srw-rw---- 1 hestiaweb hestiaweb 0 Mar 21 22:50 hestia-php.sock
cp /usr/local/hestia/install/common/sudo/hestiaweb /etc/sudoers.d/
v-add-sys-dependencies
If no error, reinstall again.
apt remove hestia-nginx hestia-php
apt install bubblewrap
apt install --reinstall hestia
apt install hestia-nginx hestia-php