Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jasonlosito's avatar

Laravel Website on Digital Ocean keeps crashing

Hi. I signed up for a Laravel Forge and a Digital Ocean account and created a website using Laravel. The website is now live but I have noticed that it keeps crashing everyday. I have to restart the server to make it work again. Is there something I need to do or a task that I need to schedule in Laravel Forge to prevent this form happening?

Also, I noticed that the jQuery plugin becomes unresponsive. Because of this, one of my js scripts does not work properly.

Please help me on this one. Thanks!

0 likes
7 replies
zachleigh's avatar

Did you check the server logs? The laravel logs? Anything strange in there?

muragijimana's avatar

Hey buddy I don't know about laravel forge but I guess it's the one causing the issue like restaring a server or other funy stuff I recomment to disable laravel forge a little time and try configure digitalocean itself with no aditional support of third party.

theFinalArbiter's avatar

I found the 512MB instance was to small for me. But I experienced the crash only when deploying. Thats not the case for you right?

zachleigh's avatar

I read somewhere that Forge needs more than 512MB. So youre site is probably fine on 512MB by itself, but if you use Forge, it won't work properly.

1 like
noeldiaz's avatar

@jasonlosito check and make sure you have turned swap on for your droplet. Without that you will crash when you run out of memory, especially on a small one. Here is a link to another forum thread where they discuss setting up the swap [https://laracasts.com/discuss/channels/forge/does-forge-run-ok-on-a-digitalocean-512mb-instance].

Won't be a solution if you end up doing more than what the droplet can handle, but should help you prevent most of the crashes.

jekinney's avatar

MySQL 5.7 minimum requirement is 1gb. So if you have more then 10 users online at once with an average amount of queries good luck.

Forge only installs a Ubuntu box with the same software as homestead. Nothing more invasive then that. A Cpannel if you will but not hosted on the server like most. It just sshs into your server after set up to further set configurations.

Never get why people think forge is so invasive. Nothing more then a predefined commands.

Please or to participate in this conversation.