Author: Alice

Remove session files under /tmp weekly

Remove session files under /tmp weekly root@host [/scripts]# ll | grep cleanup.sh-rwxr-xr-x  1 root root      39 Nov 21 10:41 cleanup.sh*root@host [/scripts]# cat cleanup.shfind /tmp/  -name “sess_*” | xargs rm root@host [/scripts]#================================weekly on...

Find command

Recursive chmod only files within this folder: find . -type f -exec chmod 0644 {} ; Recursive chmod only folders within this folder: find . -type d -exec chmod 0755 {} ; into a...

Blacklisting

Steps to Be Followed When Your IP Address Is Blacklisted If your Domain-Name or IP Address is blacklisted at any ISP, you need to send them a request to remove it from their blacklist...

Force SSL/https using .htaccess and mod_rewrite

Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with...

Zero database size

When we login to any clients cpanel , it is not showing actual database size , instead it is showing zero. With phpmyadmin we can see correct size but as you login to capnel...

Virtuozzo administration.

Commands to monitor load and memory for hardware node -virtuozzo 1) vzlist -o laverage,veid 2) vzlist -o ctid,name,laverage,kmemsize -s laverage This one gives a good overview of the load and memory usage this comes...

server setup + directadmin

1)First install yum This is for x86_64 Bit centos -5.3. http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/ rpm –import http://mirror.centos.org/centos-5/5.3/os/x86_64/RPM-GPG-KEY-CentOS-5rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpmrpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpmrpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpmrpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/m2crypto-0.16-6.el5.3.x86_64.rpmrpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpmrpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/sqlite-3.3.6-2.x86_64.rpmrpm -ivh http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/rpm-python-4.4.2.3-9.el5.x86_64.rpmrpm –nodeps -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpmrpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.7.x86_64.rpm rpm...

Optimization WordPress Plugins & Solutions by W3 EDGE