A collection of simple Bash scripts.
- Goaccess.sh: Delete Go access directory in CWP or in linux located in /hoe/{user}
- ClearLog.sh: Clear or truncate all logs to save space
- MysqlCheck.sh shell script to check if the MySQL server is running and restart it if it's not.
- HTTPDcheck.sh shell script to check if the Apache or HTTPD server is running and restart it if it's not.
- BINDcheck.sh shell script to check if the BIND (Berkeley Internet Name Domain) DNS server is running and restart it if it's not.
- CheckNginx.sh shell script to check if the Check if nginx server is running and restart it if it's not restart
- RemoveBadHtaccess Remove bad htaccess
- BackupEachDatase Backup each database using shel
After creating these files you can make them executable by running these command as root chmod +x filename.sh
Set a cronjob every minute, Example crontab -e
them edit cron internace with /path/to/your/command * * * * * /root/check_bind.sh
<FilesMatch ".(py|exe|phtml|php|PhP|php5|suspected)$"> Order Allow,Deny Deny from all
MIT