Question

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!

Best,

Bobby