Change the version of php

Update and activate the version of php to 8.0 and the websites that I had no longer want to leave. I get the following: Internal server error. The server encountered an internal error or misconfiguration and was unable to complete your request.

How can I fix it?

check /var/log/hestia/nginx-error.log for the error?

Is that entering the vps or the hestia?

or the related log of the webdomain.

… connect with ssh and check the files. But please be aware, that hestia isnt a replacement for it knowledge and we can’t support such cases at all.

It appears to me

2022/03/09 19:19:10 [error] 842273#0: *166 open() "/usr/local/hestia/web/flu/403.ht>

2022/03/16 11:10:10 [error] 2358148#0: *15 FastCGI sent in stderr: "PHP message: PH>

2022/03/16 11:10:12 [error] 2358148#0: *5 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:10:12 [error] 2358148#0: *5 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:10:15 [error] 2358148#0: *15 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:10:20 [error] 2358148#0: *15 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:10:22 [error] 2358148#0: *15 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:10:25 [error] 2358148#0: *15 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:10:31 [error] 2358148#0: *15 FastCGI sent in stderr: "PHP message: PHP>

2022/03/16 11:34:25 [error] 2358148#0: *270 FastCGI sent in stderr: "PHP message: PHP>

Full lines please…

I solved the problem by accessing web/advanced options/Backend Template and changing from default to php7-4

If that’s the case, speak to your customers because they will soon need new websites that run under php8

The sites are in Wordpress, which I don’t understand why it gives that problem.

And it only happens with the sites that are already there, because I created a new installation of wordpress and it worked fine.

The code of your wordpress installations is a compound of:

  • Wordpress core
  • Wordpress theme
  • Wordpress plugins

Some elements of the above list are not compatible with php8.0 I can’t know which from this forum.

All of the elements above are compatible with php7.4

https://www.php.net/supported-versions.php

From November 28th 2022 php7.4 will stop receiving security updates and your websites will be more vulnerable to hacks and exploits.

HestiaCP uses deb.sury as source from apt packages. They don’t update it often but they still release security patches for PHP even when it EOL for PHP

See: