Internal Server Error (On Wordpress Site)

Hello.
I’m using :
Debian 12.8, HestiaCP 1.8.12, Apache2, PHP 7_4

I reinstall the server with hestiaCP, but now I got Internal Server Error when tried a Wordpress sites. This sites just works before.

Where do I start troubleshooting?, cause change Display Error = On, on PHP 7_4 didn’t show me the error messages.

Please Help.

Hi, you need to check the error log file, paste the file we will help you.

Here is the website log :
140.213.187.52 - - [20/Nov/2024:18:00:51 +0800] “GET / HTTP/1.0” 500 3494 “https://teckococo.com/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36”
140.213.187.52 - - [20/Nov/2024:18:00:51 +0800] “GET /favicon.ico HTTP/1.0” 500 3494 “https://teckococo.com/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36”

Here is the error website log:
[Wed Nov 20 17:46:57.683907 2024] [core:alert] [pid 284090:tid 284106] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 17:46:57.888710 2024] [core:alert] [pid 284090:tid 284112] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 17:47:22.802964 2024] [core:alert] [pid 284090:tid 284130] [client 66.249.79.129:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 17:48:01.612615 2024] [core:alert] [pid 284089:tid 284103] [client 47.128.115.132:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 17:58:24.073614 2024] [core:alert] [pid 284089:tid 284104] [client 13.233.167.86:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 17:58:24.149959 2024] [core:alert] [pid 284089:tid 284107] [client 13.233.167.86:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 17:58:28.652423 2024] [core:alert] [pid 284090:tid 284132] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 17:58:28.825442 2024] [core:alert] [pid 284089:tid 284103] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 17:59:12.683431 2024] [core:alert] [pid 284089:tid 284121] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 17:59:12.879814 2024] [core:alert] [pid 284090:tid 284129] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 17:59:24.786890 2024] [core:alert] [pid 284090:tid 284139] [client 207.46.13.230:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 18:00:47.765417 2024] [core:alert] [pid 284090:tid 284143] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 18:00:47.944031 2024] [core:alert] [pid 284089:tid 284124] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 18:00:49.820000 2024] [core:alert] [pid 284090:tid 284130] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 18:00:50.052175 2024] [core:alert] [pid 284090:tid 284134] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 18:00:51.427536 2024] [core:alert] [pid 284090:tid 284128] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 18:00:51.587999 2024] [core:alert] [pid 284090:tid 284135] [client 140.213.187.52:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://teckococo.com/
[Wed Nov 20 18:02:12.144910 2024] [core:alert] [pid 284089:tid 284105] [client 116.203.78.202:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 18:02:52.574340 2024] [core:alert] [pid 284090:tid 284139] [client 66.249.79.133:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 18:03:42.800758 2024] [core:alert] [pid 284090:tid 284102] [client 2a02:598:64:8a00::3100:7:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 20 18:03:50.919276 2024] [core:alert] [pid 284090:tid 284133] [client 111.225.148.3:0] /home/inda/web/teckococo.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration

Hello,

I think I found the problem.

in .htaccess, i changed :
Header unset Vary
into
#Header unset Vary

Now the Internal Error messages are gone.

You need to enable the apache mod_headers module. Try this command:

sudo a2enmod headers
sudo systemctl restart apache2
2 Likes

Thank’s, I tried this and the Internal Error gone.
This is the solution for me. Many thank’s