It is currently Sat Dec 21, 2024 1:02 pm

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum




FreeBSD memory stats (perl script)

FreeBSD RAM memory

freebsd-memory -- List Total System Memory Usage
#!/usr/bin/perl
##
## freebsd-memory -- List Total System Memory Usage
## Copyright (c) 2003-2004 Ralf S. Engelschall <[email protected]>
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## ...
Read more : FreeBSD memory stats (perl script) | Views : 12676 | Replies : 1 | Forum : FreeBSD specific


Booting fallback systems with GRUB

GRUB supports a fallback mechanism of booting one or more other entries if a default boot entry fails. You can specify multiple fallback entries if you wish.

Suppose that you have three systems, `A', `B' and `C'. `A' is a system which you want to boot by default. `B' is a backup system which is supposed to boot safely. `C' is another backup system which is used in case where `B' is broken.

Then you ...
Read more : Booting fallback systems with GRUB | Views : 2326 | Replies : 0 | Forum : Linux specific


Linux Software RAID (MDADM)

Managing Linux Software RAID

Marking a damaged disk as failed:
Code: Select all
mdadm --manage --set-faulty /dev/md1 /dev/sdd1

Removing the damaged disk from the array:
Code: Select all
mdadm /dev/md1 -r /dev/sdd1

Shutdown your system, bring it up into single user mode and partition and format your new disk. Set the partition type as Linux Software RAID autodetect. Of course you need to partition your new disk the same as the previous one. Bring the machine up into it's default runlevel, ...
Read more : Linux Software RAID (MDADM) | Views : 6816 | Replies : 2 | Forum : Linux specific


Console Spamassasin Enable/Disable

Spamassassin can be enable or disabled through ssh on your server. This is quite useful when the server has very high loads which make whm inaccessible. It is also useful in some cases where WHM does not work correctly. So in order to disable spamassassing login to your server through SSH and execute the command:

Code: Select all
touch /etc/spamdisable
/etc/init.d/exim restart

On the contrary if you want to enable it again, just remove the above file and ...
Read more : Console Spamassasin Enable/Disable | Views : 2614 | Replies : 0 | Forum : Server Side Actions


DNS Blacklist description

DNSBL
A DNS Blacklist, or DNSBL, is a means by which an Internet site may publish a list of IP addresses that some people may want to avoid and in a format which can be easily queried by computer programs on the Internet. The technology is built on top of the Internet Domain Name System, or DNS. DNSBLs are chiefly used to publish lists of addresses linked to spamming. Most mail transport agent (mail server) ...
Read more : DNS Blacklist description | Views : 11045 | Replies : 3 | Forum : Linux specific


Adding Custom Directives to httpd.conf

Adding Custom Directives to httpd.conf

Many users are initially daunted by the new system used for generating and managing Apache's core configuration file, httpd.conf. As mentioned in The Apache Configuration System direct edits of httpd.conf will no longer be preserved unless they are properly integrated with the new Apache configuration system. This section lists the various methods available for customizing the httpd.conf file. For most users, the apache config distiller tool or the use of ...
Read more : Adding Custom Directives to httpd.conf | Views : 3666 | Replies : 0 | Forum : Server Side Actions


Useful MySql notes Useful MySql notes

Administrating a MySQL server

Setting the password:
1. From Unix shell:
shell> mysql -u username -h hostname -p password
mysql> SET PASSWORD FOR 'username'@'localhost'=PASSWORD('new_password');

2. Directly manipulate the privilege tables:
shell> mysql -u username -h host -u username -p
mysql> UPDATE user SET Password=PASSWORD('new_password') WHERE user='root';
mysql> FLUSH PRIVILEGES;

3. Using the mysqladmin command:
shell> mysqladmin -u username password new_password

In our case we were able to change password specifying host name along with user ...
Read more : Useful MySql notes | Views : 5685 | Replies : 1 | Forum : Server Side Actions


Bug with MailMan ImportError: No module named korean

Bug with MailMan ImportError: No module named korean

Sometimes, you may get the following error on cpanel error log while creating mailing list.
File “/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl”, line ****, in ?
import paths
ImportError: No module named korean

FIX:
Code: Select all
uname -i

then do accordingly:
Code: Select all
yum install python-devel.i386
or
yum install python-devel.x86_64

/scripts/reinstallmailman
Read more : Bug with MailMan ImportError: No module named korean | Views : 2260 | Replies : 0 | Forum : Server Side Actions


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron