Chris Mendez in Lightsail, For Developers

Managing an attack on your Bitnami server

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/ start apache