How to empty /tmp

If you want to delete all files and dirs from /tmp use following command. cd /tmp chattr +i lost+found; deltree -f *; deltree -f .*; chattr -i lost+found ln -s /var/lib/mysql/mysql.sock service mysql restart /scripts/restartsrv mysql above commands will help you to delete all files under /tmp        

See More

Error : semget error in httpd

Guys, If you face  semget error while restarting httpd. Please use  following command. ipcs -s | grep nobody | perl -e ‘while () {@a=split(/\s+/); print `ipcrm sem $a[1]`}’ Then restart Apache service /scripts/restartsrv httpd It will help you to resolve the error.          

See More

Customize Error documents

How can we customize Error document with .htaccess ? Just add following in your doc root to take the error page from within errors folder in DocumentRoot. ErrorDocument 400 /errors/badrequest.html ErrorDocument 401 /errors/authreqd.html ErrorDocument 403 /errors/forbid.html ErrorDocument 404 /errors/notfound.html ErrorDocument 500 /errors/serverr.html Then check it.    

See More