Preparing Ubuntu System before Webmin Install.
You can install webmin for your server web interface to configure apache2,mysql,FTp servers and many more.
Preparing your system
First you need to install the following packages
sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Now download the latest webmin using the following command or from
http://www.webmin.com/download.html
Cloudmin Installer Script
Supported Linux distributions are CentOS 5, Redhat Enterprise 5, Debian 4.0 and Ubuntu 8.04.
The CentOS or Redhat installer can be downloaded from:
http://cloudmin.virtualmin.com/gpl/scripts/cloudmin-gpl-redhat-install.sh
Once you have it on the Linux system you want to run Cloudmin on, execute it with the commands
chmod +x cloudmin-gpl-redhat-install.sh
./cloudmin-gpl-redhat-install.sh
The install script should download and setup a Xen-capable kernel.
Cloudmin Introduction
It is a UI built on top of Webmin for managing virtual systems, such as Xen, KVM and OpenVZ instances. Using Cloudmin you can create, destroy, resize, startup, shutdown and restrict multiple instances using different virtualization technologies from a single interface. It also has a full command line API that can be used to manage virtual systems from a shell script or via HTTP requests.
Cloudmin is designed for use by VPS hosting companies that sell virtual systems to their customers, but is also suited for anyone who wants to get into virtualization for application management, testing, controlling a cluster of Virtualmin hosts, or just to learn about cloud computing.
Reference: http://www.webmin.com/
Got a packet bigger than ‘max_allowed_packet’ bytes
If you get this error when trying to dump a MySQL DB, this is due to the packet limit of MySQL server.
To solve this issue, add an extra entry into /etc/my.cnf file under [mysqld] group:
max_allowed_packet = 100M
This will reset the limitation to 100Mb for file insertion into blob type (or longblob) column. Then restart mysql server:
/sbin/service mysql restart
Reference:
http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_max_allowed_packet
Troubleshooting BIND
There are a number of tools that are available to assist with testing and troubleshooting problems with your BIND configuration. The simplest tool on most systems is the host command, which simply performs an address lookup or a reverse address lookup. More complete information can be gathered using dig.
The simplest usage of host is to lookup an address, or a name.
$ host serverbuddies.com
serverbuddies.com has address 67.228.43.85
serverbuddies.com mail is handled by 0 mail.serverbuddies.com.
Ask for the name servers that are authoritative for a domain by using the -t ns command line option..
$ host -t ns google.com
google.com name server ns2.google.com.
google.com name server ns3.google.com.
google.com name server ns4.google.com.
google.com name server ns1.google.com.
The MX record can be retrieved by using the -t mx option.
Just like host, it is possible to query your default system resolver, or you can query a name server specified on the command line. For example, I could query my local name server about the nostarch.com domain.
$ dig @192.168.1.1 serverbuddies.com
More at http://doxfer.com/