Apache/httpd failed to start

There was an issue with line 1 of /usr/local/apache/conf/modsec2.user.conf:

Syntax error on line 1 of /usr/local/apache/conf/modsec2.user.conf:
Invalid command ‘ecRequestBodyAccess’, perhaps misspelled or defined by a module not included in the server configuration
root@340211 [/]# nano /usr/local/apache/conf/modsec2.user.conf

It needed to e set to:
SecRequestBodyAccess On

Now that it has been changed httpd is starting normally.

SSH Add / Create Crontab

SSH login to your server

crontab -e

* * * * 6 /usr/bin/rm -rf /tmp/*    {( Cron job to delete all the files in the tmp folder )}

^x {(Ctrl x –  to exit the edit mode)}

Click Y to save.

Hit the Enter button.


* * * * * {(Cron job will run every minute)}

0 0 * * * {(Cron job will run every day)}

* * * * 6 {(Cron job will run every Saturday)}

Check SSH UseDNS

Edit the file: /etc/ssh/sshd_config

# vi /etc/ssh/sshd_config

Find the line #UseDNS yes
Just type /UseDNS

Enter the edit mode by clicking the ‘Insert’ button

Change the yes to no (UseDNS no)
And remove the # tag.

This line: #UseDNS yes
Should look: UseDNS no

Exit edit mode by clicking on [Esc] button

Click :wq