HTTP ERROR 500 When it must be showing php syntax error or smthing like that.

Well i followed LEMP tutorial and everything works fine except it is not telling me what error I made instead i get this HTTP ERROR 500

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 27, 2022

Hi there,

What I could suggest is checking the PHP-FPM error log so that you can see the actual error rather than the generic 500 error.

The PHP-FPM log is located at the /var/log directory, for example if you’ve installed PHP 8 then the log would be at /var/log/php8.0-fpm.log. To check the log you can use the tail command:

tail -100 /var/log/php8.0-fpm.log

In there you will see the actual error, feel free to share it here so we could try to advise you further!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up