Why AWStats is not updating automatically?

awstats is not updating automatically in cpanel 1)  SSH to Server as root. 2) Change the directory to: /home/user/tmp/awstats * We need to make sure that the directive “AllowToUpdateStatsFromBrowser” is set to 1. grep AllowToUpdateStatsFromBrowser awstats.example.com.conf * Please check the permission of “/usr/local/cpanel/3rdparty/bin/awstats.pl” file. It must be 775. # ll /usr/local/cpanel/3rdparty/bin/awstats.pl -rwxrwxr-x. 1 root root 679172 Aug […]

Empty trash folder automatically

How to disable delete emails from trash after 7 days ? Ans : Empty trash folder automatically. Sometimes  Problems arise when clients E mail accounts run out of its quota, even tough the In-boxes kept empty, they somehow forget to clean the Trash boxes too. After checking it is found that, all the E mails were […]

Script to automatically start Nginx

You can use the following script to auto restart the nginx on the server. The following script check the status and if it is down then it restart. You can set cron  “* * * * * /bin/sh /root/autongnixrestart.sh”   #! /bin/sh set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC=”nginx daemon” NAME=nginx DAEMON= /usr/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME test -x $DAEMON || exit […]