500 Internal Server Error in my site.

Posted December 22, 2019 7.1k views

I am stared using DigitalOcean a month ago. My site was running fine and an hour ago I decided to back up my DB using PHPMyAdmin but unfortunately, I entered the wrong password a few times.
And It started showing HTTP ERROR 500. So, now the site is down. So, later on, I use the Power cycle from DO.

Now, I can access the console but the site is still down.
Can anybody assist me? Earlier I had set up LEMP Server. Thanks

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.

Submit an Answer
3 answers

Hi @nepalourname,

There are a few possibilities, I’ll try and lay them down.

Services are down

It’s good to be able to enter into your droplet. Ssh to it

ssh root@YourDropletIp

Once you are in check if your services are down like this

service nginx status

This will show you if Nginx is loading or not. If it says failed, just type in

service nginx restart

This will try to restart the service for you. The same can be applied for MySQL as well.

Now, if it fails to load, there will be a reason behind it. Typing in

service nginx status

should show you the reason however if it doesn’t, the journal should help you out

journalctl -xe

Try the above and let me know how it goes. If it goes well, then great,if it doesn’t let me know what’s going on and I’ll further assist you.


  • Nothing happens
    The site is still down.

    This page isn’t working is currently unable to handle this request.
    HTTP ERROR 500

    • Hi @nepalourname,

      Ohh, in that case it’s a code related issue rather than a server one.

      You can check the exact error by posting the following in your index.php file at the top

      ini_set('error_reporting', E_ERROR);
      function fatal_handler() {
      $error = error_get_last();

      The above should print the exact error you are experiencing.