I get an http 500 error in my script

Hello family, I hope you are well?

I installed a script and it works fine. well it’s relative because I get an http 500 error when I click on some pages of the site.

Would you know how to fix it?


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.

If you are seeing a 500 error in your browser when you are trying to access your website, it could be because of a problem with the script on your server. Sometimes it is as simple as an incompatibility between Apache and the PHP script, in which case you need to rebuild your website to be compatible with Apache.

Hi there @hyppoliteondo,

What I could suggest is checking your server logs to see the actual error rather than the generic 500 error. If you are using Apache you can do that with:

tail -100 /var/log/apache2/error.log

If you are using Nginx, you can use the following:

tail -100 /var/log/nginx/error.log

Alternatively, depending on the PHP framework that you are using, I would recommend enabling debug mode so that you could see the actual stack trace.

Let me know how it goes! Regards, Bobby