Cron allows users to automate repetitive system administration tasks such as tape backups, database reorganization, and general file cleanups (such as emptying log files and queues). The Crontab File’s SyntaxTo…
Category: General Discussion
To check the bad block for HDD (hard disk)
November 28, 2006 / General DiscussionUse following command to check the badblocks of the hard drive (HDD)/sbin/badblocks -vv /dev/hdXXThis is a part of the e2fsprogs-1.27-3 rpm which is full of utilities used for file system.…
What Is .HTACCESS?
November 28, 2006 / General Discussion.Htaccess is a small text file that controls the configuration aspects of an Apache webserver. Most people are familiar with the .htaccess file in relation to the ability to restrict…
Spam Assassin ***SPAM***
November 28, 2006 / General DiscussionPlease go to /home/username/.spamassassin#pico /home/wwwmfm/.spamassassin/user_prefs required_hits 1rewrite_subject 1rewrite_header Subject *****SPAM*****
Execute CGI outside CGI-bin
November 28, 2006 / General DiscussionExecute CGI outside CGI-BINjust add following 2 lines in .htaccess files to execute cgi scripts in any folder outside cgi-binAddHandler cgi-script .pl .cgiOptions Includes ExecCGI
How to Binding Multiple IPs to a Server
November 28, 2006 / General Discussioncd /etc/sysconfig/network-scripts/cat ifcfg-eth0 Then copy the contents of this file onto a notepadChange the IP in the copied text to the IP that you wantpico ifcfg-eth0:xwhere x is the device…
MySql Sample my.cnf File
November 27, 2006 / General Discussion[client]port=3306socket=/var/lib/mysql/mysql.sock[mysqld]port=3306datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockskip-lockingskip-innodbquery_cache_limit=1Mquery_cache_size=32Mquery_cache_type=1max_connections=500interactive_timeout=100wait_timeout=14400connect_timeout=10thread_cache_size=128key_buffer=150Mjoin_buffer=1Mmax_allowed_packet=16Mtable_cache=1500record_buffer=1Msort_buffer_size=1Mread_buffer_size=1Mread_rnd_buffer_size=768Kmax_connect_errors=10thread_concurrency=4myisam_sort_buffer_size=64Mlog-binserver-id=1[mysql.server]user=mysqlbasedir=/var/lib [safe_mysqld]err-log=/var/log/mysqld.logpid-file=/var/lib/mysql/********.pid [NOTE : here it should be server hostname]open_files_limit=8192 [mysqldump]quickmax_allowed_packet=16M [mysql]no-auto-rehash [isamchk]key_buffer=64Msort_buffer=64Mread_buffer=16Mwrite_buffer=16M [myisamchk]key_buffer=64Msort_buffer=64Mread_buffer=16Mwrite_buffer=16M [mysqlhotcopy]interactive-timeout
Script for /etc/init.d/named
November 27, 2006 / General DiscussionIf you are having problems with the named service, check out the script on the server under /etc/init.d/Most probably it will be the script for FreeBSD Server. You can make…
To Disable any (Horde/Squirrel/Neomail)
November 27, 2006 / General DiscussionIs there any way to disable Horde or other webmail applications for users who don’t want them? Let’s say the user’s username is Sunil, first you will need to SSH…
Mysql root issues, cannot log into the database as a root
November 27, 2006 / General DiscussionIf you face such an error —–> ERROR 1045: Access denied for user: ‘root@localhost’ (using password: NO). Solution : You have set a password on the root account. This is…