Archive for October, 2008

Install Webmin on CentOS 5

I just finished installed Webmin on my CentOS box. The interface has improved vastly over the years. It’s prettier and easier to configure and manage.

Before installing Webmin, you need to install its dependencies.

Install dependencies:
yum -y install perl-Net-SSLeay

Install webmin

Go to:
cd /usr/src

Download webmin:
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.440-1.noarch.rpm
(note: you should always use the latest release)

Install webmin:
rpm -i webmin-1.440-1.noarch.rpm

Comments (1)

Web Control Panels

There are so many control panels available for website management/web hosting over the Internet. They are

Cpanel (paid) http://www.cpanel.net/
DirectAdmin (paid) http://www.directadmin.com
Plesk (paid) http://www.parallels.com/plesk/
Interworx (paid) http://www.interworx.com/
Webmin (free) http://www.webmin.com
ISPConfig (free) http://www.ispconfig.org/
LxAdmin (free) http://lxlabs.com/
Web-cp (free) http://www.web-cp.net/

You should choose the control panel based on your requirements. I would choose based on
1. Does not require much resources such as CPU, Memory.
2. Requires minimum configuration.
3. Obviously free or less cost per month

Leave a Comment

CakePHP for domain and subdomain

If you are using CakePHP with domain and subdomain together, you’d need to enable Session in Cake for both domains. If not, Cake will set session only to the specific domain.

To enable the session for both domain and subdomain:

Go to
app/config/bootstrap.php

Enter
ini_set('session.cookie_domain', 'domain.com');

Leave a Comment

Enable Wildcard DNS in DirectAdmin

I just enabled Wildcard DNS in DirectAdmin. It is much easier than I thought. To enable it, you must be in Admin level.

Here is how to enable:

Amend to domain’s http config:

Go to Extra Features > Custom HTTPD Configurations

Click the domain that you wish to enable.

Enter ServerAlias *.|DOMAIN| in Httpd.conf Customization for domain.com

Click Save

Adding to DNS:

Admin Tools > DNS Administration > Choose domain

Add A record:

Enter *

Enter the IP of domain

Add CName:

Enter *.domain.com

Enter the domain followed by dot

You may need to restart Apache and wait for DNS propagated which may take up to 24-48 hours (usually, it should not take long).

Comments (1)