Bash Script writing

Job ID: 36576104

Budget: $10 – $30 USD

write a Bash script to do the following:
1) Install Apache Web server and start that as well.
2) Make sure the installed web server start automatically on boot.
3) Make the Apache web server run as fast as possible.
4) Every 10 minutes, get the last 100 log messages generated by the web server. Store these log messages in a file under the directory /var/log/web. The name of the file should adhere to the following pattern: log-apache-<data/time>.log.
5) Create a user account in Ubuntu. The username should be 'it-«random»' where «random> is a set of characters randomly generated.
6) Every 20 minutes, check if the web server is down. If yes, create a file error.txt in the home directory of the user created in Step 5.



Notes:
- Make sure to include citations as Bash comments for any external source that is used.
Related categories: Python Apache Shell Script Coding Bash Scripting