Error 500 on web display

Ok I lost my old IP for failure to renew hosting on Namecheap. I emailed the support and they were able to backup Hestiacp on a new IP I bought from them. Now I am inside HestiaCP with all my users and installed website on it. The problem is all my websites display:

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

I checked /var/log/hestia/ngixn-error.log and it returns the following error:

-bash: /var/log/hestia/nginx-error.log: Permission denied

I am just a basic user of commands. Can someone help out?

Check the log files as root …

Yes i’m the root user. root@server1:~
I don’t know if that’s what you mean.

cat /var/log/hestia/nginx-error.log

And you should be able to open the file…

it says: -bash: /var/log/hestia/ngixn-error.log: No such file or directory

ls -lah /var/log/hestia/

Should list the availble files

And then:

cat /var/log/hestia/nginx-error.log

Here is what I got.

nginx-error.log is empty

Try: cat nginx-error.log.1

It returned:
cat: nginx-error.log.1: No such file or directory

cat /var/log/hestia/nginx-error.log.1

@ggb3020 If you copy and paste your text instead of attaching image files, it is a lot easier for people to read. Be sure to place three backticks (```) on the line before and after your paste to ensure that you get </> Preformatted text like this:

Typing this:

```
Your paste here
```

Will result is this:

Your paste here
2 Likes

I am sorry for the late reply. I almost gave up. So I after I entered the command suggested by Eris: cat /var/log/hestia/nginx-error.log.1
It returned the following lines:
‘’’
cat /var/log/hestia/nginx-error.log.1
2023/12/08 08:11:38 [error] 766#0: *141 FastCGI sent in stderr: “PHP message: PH P Warning: Undefined array key “v_nginx_cache_duration” in /usr/local/hestia/we b/edit/web/index.php on line 352” while reading response header from upstream, c lient: 105.112.201.3, server: _, request: “POST /edit/web/?domain=thecharityfair .online&token=8f716f9cb3a628d6f03bf03f6a60007e HTTP/2.0”, upstream: “fastcgi://u nix:/run/hestia-php.sock:”, host: “203.161.53.139:8083”, referrer: “https://203. 161.53.139:8083/edit/web/?domain=thecharityfair.online&token=8f716f9cb3a628d6f03 bf03f6a60007e”
2023/12/08 08:36:43 [error] 766#0: *236 FastCGI sent in stderr: “PHP message: PH P Warning: foreach() argument must be of type array|object, null given in /usr/ local/hestia/web/templates/pages/list_key.php on line 43” while reading upstream , client: 105.112.201.3, server: _, request: “GET /list/key/ HTTP/2.0”, upstream : “fastcgi://unix:/run/hestia-php.sock:”, host: “203.161.53.139:8083”, referrer: “https://203.161.53.139:8083/edit/user/?user=admin&token=8f716f9cb3a628d6f03bf0 3f6a60007e”
2023/12/08 14:53:26 [error] 812#0: *32 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “v_nginx_cache_duration” in /usr/local/hestia/web /edit/web/index.php on line 352” while reading response header from upstream, cl ient: 105.112.23.211, server: _, request: “POST /edit/web/?domain=eliotporterpic tures.live&token=d027f00d4ea62fc5093b3e95ff193ecf HTTP/2.0”, upstream: “fastcgi: //unix:/run/hestia-php.sock:”, host: “203.161.53.139:8083”, referrer: “https://2 03.161.53.139:8083/edit/web/?domain=eliotporterpictures.live&token=d027f00d4ea62 fc5093b3e95ff193ecf”
2023/12/08 14:57:26 [error] 812#0: *44 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “v_nginx_cache_duration” in /usr/local/hestia/web /edit/web/index.php on line 352” while reading response header from upstream, cl ient: 105.112.23.211, server: _, request: “POST /edit/web/?domain=thedovelove.on line&token=d027f00d4ea62fc5093b3e95ff193ecf HTTP/2.0”, upstream: “fastcgi://unix :/run/hestia-php.sock:”, host: “203.161.53.139:8083”, referrer: “https://203.161 .53.139:8083/edit/web/?domain=thedovelove.online&token=d027f00d4ea62fc5093b3e95f f193ecf”
2023/12/08 15:03:02 [error] 812#0: *75 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “v_nginx_cache_duration” in /usr/local/hestia/web /edit/web/index.php on line 352” while reading response header from upstream, cl ient: 105.112.23.211, server: _, request: “POST /edit/web/?domain=thecharityfair .online&token=d027f00d4ea62fc5093b3e95ff193ecf HTTP/2.0”, upstream: “fastcgi://u nix:/run/hestia-php.sock:”, host: “203.161.53.139:8083”, referrer: “https://203. 161.53.139:8083/edit/web/?domain=thecharityfair.online&token=d027f00d4ea62fc5093 b3e95ff193ecf”
2023/12/09 11:37:44 [error] 812#0: *204 FastCGI sent in stderr: “PHP message: PH P Warning: Undefined array key “v_nginx_cache_duration” in /usr/local/hestia/we b/edit/web/index.php on line 352” while reading response header from upstream, c lient: 105.112.20.1, server: _, request: “POST /edit/web/?domain=charity.thechar ityfair.online&token=4d22b5443022ef0a9e3f61c68748d378 HTTP/2.0”, upstream: “fast cgi://unix:/run/hestia-php.sock:”, host: “203.161.53.139:8083”, referrer: “https ://203.161.53.139:8083/edit/web/?domain=charity.thecharityfair.online&token=4d22 b5443022ef0a9e3f61c68748d378”
‘’’

Not whatever this is

But three backticks (`). On the US keyboard it is in the same key as the tilde (~).

Can you edit your post so that your console output is legible?

I see only warnings this can’t be the issue…

2 Likes

Ok thanks for the correction. Here:

cat /var/log/hestia/nginx-error.log.1
2023/12/08 08:11:38 [error] 766#0: *141 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_nginx_cache_duration" in /usr/local/hestia/web/edit/web/index.php on line 352" while reading response header from upstream, client: 105.112.201.3, server: _, request: "POST /edit/web/?domain=thecharityfair.online&token=8f716f9cb3a628d6f03bf03f6a60007e HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "203.161.53.139:8083", referrer: "https://203.161.53.139:8083/edit/web/?domain=thecharityfair.online&token=8f716f9cb3a628d6f03bf03f6a60007e"
2023/12/08 08:36:43 [error] 766#0: *236 FastCGI sent in stderr: "PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/templates/pages/list_key.php on line 43" while reading upstream, client: 105.112.201.3, server: _, request: "GET /list/key/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "203.161.53.139:8083", referrer: "https://203.161.53.139:8083/edit/user/?user=admin&token=8f716f9cb3a628d6f03bf03f6a60007e"
2023/12/08 14:53:26 [error] 812#0: *32 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_nginx_cache_duration" in /usr/local/hestia/web/edit/web/index.php on line 352" while reading response header from upstream, client: 105.112.23.211, server: _, request: "POST /edit/web/?domain=eliotporterpictures.live&token=d027f00d4ea62fc5093b3e95ff193ecf HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "203.161.53.139:8083", referrer: "https://203.161.53.139:8083/edit/web/?domain=eliotporterpictures.live&token=d027f00d4ea62fc5093b3e95ff193ecf"
2023/12/08 14:57:26 [error] 812#0: *44 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_nginx_cache_duration" in /usr/local/hestia/web/edit/web/index.php on line 352" while reading response header from upstream, client: 105.112.23.211, server: _, request: "POST /edit/web/?domain=thedovelove.online&token=d027f00d4ea62fc5093b3e95ff193ecf HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "203.161.53.139:8083", referrer: "https://203.161.53.139:8083/edit/web/?domain=thedovelove.online&token=d027f00d4ea62fc5093b3e95ff193ecf"
2023/12/08 15:03:02 [error] 812#0: *75 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_nginx_cache_duration" in /usr/local/hestia/web/edit/web/index.php on line 352" while reading response header from upstream, client: 105.112.23.211, server: _, request: "POST /edit/web/?domain=thecharityfair.online&token=d027f00d4ea62fc5093b3e95ff193ecf HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "203.161.53.139:8083", referrer: "https://203.161.53.139:8083/edit/web/?domain=thecharityfair.online&token=d027f00d4ea62fc5093b3e95ff193ecf"
2023/12/09 11:37:44 [error] 812#0: *204 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "v_nginx_cache_duration" in /usr/local/hestia/web/edit/web/index.php on line 352" while reading response header from upstream, client: 105.112.20.1, server: _, request: "POST /edit/web/?domain=charity.thecharityfair.online&token=4d22b5443022ef0a9e3f61c68748d378 HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "203.161.53.139:8083", referrer: "https://203.161.53.139:8083/edit/web/?domain=charity.thecharityfair.online&token=4d22b5443022ef0a9e3f61c68748d378"
1 Like

Just wondering what the issue might be.

having same issue currently
did u find a fix for urs

1 Like

I have the same problem(

Did you try to change the nginx template to another for example drupal? Give it a try and then you turn it back to the previous one.