I am new to `aws` server configuration. I have setup an `nginx` web server with `mariadb` database server for my `php/laravel` web application. My database server was running good for the last few days hence my website was running without any error. But yesterday the database server has been stopped working automatically. I tried to start `mariadb` but it is not starting.

I noticed that the database server (mariadb) stops working after a few days of my fresh server installation. I suspect it could be a memory problem but I cannot find out the problem.

I have setup the the server following the aws documentation: <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html>

Can anyone give some ideas about the problem?