mkdir -p /data/db
Command to create a folder and then another folder inside that.
ARUN Post in LINUX COMMANDS,
16
January
2010
0
To set permission 755 for folders and 644 for files
ARUN Post in LINUX COMMANDS,
16
January
2010
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),
15
January
2010
vi /usr/local/apache/conf/httpd.conf