Giter Site home page Giter Site logo

bashscripts's Introduction

A collection of simple Bash scripts.

Getting Started

  1. Goaccess.sh: Delete Go access directory in CWP or in linux located in /hoe/{user}
  2. ClearLog.sh: Clear or truncate all logs to save space
  3. MysqlCheck.sh shell script to check if the MySQL server is running and restart it if it's not.
  4. HTTPDcheck.sh shell script to check if the Apache or HTTPD server is running and restart it if it's not.
  5. BINDcheck.sh shell script to check if the BIND (Berkeley Internet Name Domain) DNS server is running and restart it if it's not.
  6. CheckNginx.sh shell script to check if the Check if nginx server is running and restart it if it's not restart
  7. RemoveBadHtaccess Remove bad htaccess
  8. 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

BAD HTACCESS EXAMPLE

<FilesMatch ".(py|exe|phtml|php|PhP|php5|suspected)$"> Order Allow,Deny Deny from all

License

MIT

bashscripts's People

Contributors

mrdonrule avatar

Stargazers

Justin well avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.