wahyu14
September 9, 2024, 4:43am
1
My server after reboot it seems like do autoupgrade hestiacp to 1.8.12
and after i try to login in web login it show Internal Server Error
Oops! Something went wrong.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Error Code: 500
Please help
sahsanu
September 9, 2024, 5:31am
2
Web login means Hestia’s login https://yourserver:8083 or another login to one of your web sites?
wahyu14
September 9, 2024, 6:44am
3
yes login page cannot access only show internal server error
sahsanu
September 9, 2024, 9:17am
4
Show the output of these commands:
systemctl status hestia --no-pager -l
ls -l /run/hestia-*
ps -ef | grep '[m]aster.*hestia'
tail -n25 /var/log/hestia/nginx-error.log
wahyu14
September 9, 2024, 9:50am
6
systemctl status hestia --no-pager -l
● hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: active (running) since Mon 2024-09-09 10:55:25 WIB; 5h 44min ago
Docs: man:systemd-sysv-generator(8)
Process: 696 ExecStart=/etc/init.d/hestia start (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 9487)
Memory: 25.9M
CPU: 1.761s
CGroup: /system.slice/hestia.service
├─907 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
├─908 nginx: worker process
└─918 php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)
ls -l /run/hestia-*
-rw-r–r-- 1 root root 4 Sep 9 10:55 /run/hestia-nginx.pid
-rw-r–r-- 1 root root 3 Sep 9 10:55 /run/hestia-php.pid
srw-rw---- 1 admin admin 0 Sep 9 10:55 /run/hestia-php.sock
ps -ef | grep ‘[m]aster.*hestia’
root 907 1 0 10:55 ? 00:00:00 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
root 918 1 0 10:55 ? 00:00:01 php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)
tail -n25 /var/log/hestia/nginx-error.log
2024/09/09 14:08:56 [error] 908#0: *40 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function exec() in /usr/local/hestia/web/inc/main.php:22
Stack trace:
#0 /usr/local/hestia/web/login/index.php(7): include()
#1 {main}
thrown in /usr/local/hestia/web/inc/main.php on line 22” while reading response header from upstream, client: 103.242.124.7, server: _, request: “GET /login/ HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “hestiacpurl:1029”
2024/09/09 14:08:57 [error] 908#0: *40 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function exec() in /usr/local/hestia/web/inc/main.php:22
Stack trace:
#0 /usr/local/hestia/web/login/index.php(7): include()
#1 {main}
thrown in /usr/local/hestia/web/inc/main.php on line 22” while reading response header from upstream, client: 103.242.124.7, server: _, request: “GET /login/ HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “hestiacpurl:1029”
2024/09/09 14:08:57 [error] 908#0: *40 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function exec() in /usr/local/hestia/web/inc/main.php:22
Stack trace:
#0 /usr/local/hestia/web/login/index.php(7): include()
#1 {main}
thrown in /usr/local/hestia/web/inc/main.php on line 22” while reading response header from upstream, client: 103.242.124.7, server: _, request: “GET /login/ HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “hestiacpurl:1029”
2024/09/09 14:08:57 [error] 908#0: *40 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function exec() in /usr/local/hestia/web/inc/main.php:22
Stack trace:
#0 /usr/local/hestia/web/login/index.php(7): include()
#1 {main}
thrown in /usr/local/hestia/web/inc/main.php on line 22” while reading response header from upstream, client: 103.242.124.7, server: _, request: “GET /login/ HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “hestiacpurl:1029”
2024/09/09 14:08:57 [error] 908#0: *40 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function exec() in /usr/local/hestia/web/inc/main.php:22
Stack trace:
#0 /usr/local/hestia/web/login/index.php(7): include()
#1 {main}
thrown in /usr/local/hestia/web/inc/main.php on line 22” while reading response header from upstream, client: 103.242.124.7, server: _, request: “GET /login/ HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “hestiacpurl:1029”
eris
September 9, 2024, 10:00am
7
PHP Fatal error: Uncaught Error: Call to undefined function exec() in /usr/local/hestia/web/inc/main.php:22
That is strange exec should allowed…
sahsanu
September 9, 2024, 10:02am
8
Show the output of this command:
grep disable_functions /usr/local/hestia/php/lib/php.ini
wahyu14
September 10, 2024, 3:28am
10
disable_functions = exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
sahsanu
September 10, 2024, 4:45am
11
Well, seems something edited that file and added functions to the list.
You need to edit file /usr/local/hestia/php/lib/php.ini
and replace disable_functions
by this:
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Once done:
systemctl restart hestia
1 Like
system
Closed
October 10, 2024, 6:30am
13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.