Command to create a folder and then another folder inside that.

ARUN Post in LINUX COMMANDS
0

mkdir -p /data/db

To set permission 755 for folders and 644 for files

ARUN Post in LINUX COMMANDS
0
find /home/*/public_html/ -type d -perm 0777 > /root/arun_777d.txt   –> TO FIND THE FOLDERS having 777 permission

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

OR

for i in `cat /etc/trueuserdomains| awk {‘print $2′}`; do find /home/$i/public_html -type f -exec chmod 644 {} \;; find /home/$i/public_html -type d -exec chmod 755 {} \;; done

APACHE CONF FILE IN WHM SERVER

ARUN Post in FILE PATH ( conf, logs etc)
0

vi /usr/local/apache/conf/httpd.conf

CHECK IF IP IS BLOCKED

ARUN Post in FIREWALL
0

iptables -nL | grep IP