Most of the time cgi script is not working properly after uploading by using FTP but script is working fine on local machine, why?
Because you need to be upload cgi script in ASCII Mode and Perl in BINARY Mode to run it without any problem.
You can set the load value for server by using following steps but make sure that you are having root login details to make server wide chanegs.
Edit the file
/var/cpanel/cpanel.config
and change extracpus to a number larger then 0
Then run /usr/local/cpanel/startup afterwards to pickup the changes.
How to access Awstats From Outside the control panel
Accessing Awstats from outside the control panel is easy.
Step 1.
Download awstats from http://awstats.sourceforge.net
Step 2.
Uncompress awstats-5.6.tgz
Step 3.
Copy the contents of the uncompressed cgi-bin folder from your hard drive to the user cgi-bin directory (this includes awstats.pl, awstats.model.conf, and the lang, lib and plugins sub-directories).
Step 4.
If necessary (should not be needed with most setups), edit the first (top-most) line of awstats.pl file that is
#!/usr/bin/perl
to reflect the path were your Perl interpreter is installed. Default value works for most of Unix OS, but it also might be #!/usr/local/bin/perl
Step 5.
Move AWStats icon sub-directories and its content into a directory readable by your web server, for example /home/users/public_html/icons
Step 6.
Copy awstats.model.conf file into a new file named awstats.myvirtualhostname.conf. This new file must be stored in /home/user/public_html/cgi-bin.
Step 7.
Edit this new config file with your own setup :
- Change LogFile value with full path of your web server log file (The path is: LogFile=”/usr/local/apache/domlogs/domain.com”).
- Check if LogFormat has the value “1″ (it means “NCSA apache combined/ELF/XLF log format”).
- Change DirIcons parameter to reflect relative path of icon directory. (DirIcons=”/icons”)
- Edit SiteDomain parameter with the main domain name or the intranet web server name used to reach the web site to analyze (Example: www.mydomain.com).
IMPORTANT!
- Change DirData to use the same Statics file than Cpanel Awstats and do not loose any entry.
(DirData=”/home/user/tmp/awstats/”)
Step 8.
Access AwStats by the URL:
www.yourdomain.com/
To generate the backup of mysql database using cron job refer following three format as per your requirement.
1) Cron job to generate database backup in .sql format
* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword > /path of database database.sql
2) Cronjob to compress database backup in .bz2 format
* * * * * /usr/bin/mysqldump -u datbaseusername databasename -pdatbasepassword|bzip2 -c > /path of database database.bz2
3) Cronjob to compress database backup in .gz format
* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword|gzip > /path of databasedatabase.gz
If you have any problem or idea about this thread than contact me at nsk.gunjan@gmail.com