INPUT_FILE=`ls -rt $MY_DIR/FILE.*.xml|head -1|xargs basename` I wanted to execute the 2nd command (`head -1`)only if the first command is successful. How do I improve this command ?
We have Centos 6.4 server with a physical firewall. We keep seeing quite an number of PHP.CGI.Argument.Injection is detected by the firewall. On the server itself we have done the basic apache hardening as below. We are using fail2ban and also mod_secure. What else can be done to further harden t...