If at any point your AWS LightSail website starts crashing, you might want to consider attackers. Aside from the typical things you can manage through CloudFlare, you can also run a few commands to help you narrow down the problem.
Check your work
Change directory to the Apache 2 logs.
cd /opt/bitnami/apache2/logs/
This will show you the number of times that an IP address connected to your Web server.
tail -n 10000 access_log | awk '{print $1}'| sort| uniq -c| sort -nr| head -n 10
Other things to try
Try to check if there are any different Apache server running.
ps aux | grep http
See if anything is bound to port 80.
netstat -aon | more
Kill nginx server.
sudo pkill -f nginx
Kill apache server.
sudo pkill -f apache
Restart apache.
sudo /opt/bitnami/ctlscript.sh start apache
Resources
Bitnami WordPress Cheatsheet for AWS Lightsail
I'm currently working on two WordPress websites that have been pre-configured by Bitnami within a Virtual Private Cloud. Below are a few select commands I use...
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email