Dedicated Server Support

Tips on Linux, FreeBSD, Windows Dedicated Server.

Wednesday, October 19, 2005

Cpanel Server Account Creation Error

On a Cpanel server, when new account is created, it does not added to the server, WHM just says Account Added, no other info is give.

So i checked Cpanel log at

/usr/local/cpanel/logs/error_log

Found following error


Can't locate Net/AIM.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
. /scripts /scripts /scripts /scripts /scripts /scripts) at
/scripts/cPScript/iContact.pm line 14.
BEGIN failed--compilation aborted at /scripts/cPScript/iContact.pm line 14.
Compilation failed in require at /scripts/wwwacct line 19.
BEGIN failed--compilation aborted at /scripts/wwwacct line 19.


I have installed Net::AIM perl module from cpan

# cpan
> install NET::AIM
> exit
#


Now WHM Account creation working. New accounts are added to WHM. But no DNS entry is added, that is no entry for the domains at /etc/named.conf

So i checked BIND is working or not, it was working fine.

Now i tried adding a domain through SSH with /scripts/wwwacct command


root@shoeserver [/scripts]# ./wwwacct netfreehost.com yujin e9r9r9e 10 x n n n 1 1 1 1 1 1999 n
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.

Can't locate Tie/IxHash.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5

/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
. /usr/local/cpanel /scripts /usr/local/cpanel /scripts
/usr/local/cpanel /scripts /usr/local/cpanel)
at /usr/local/cpanel/Cpanel/Form.pm line 16.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Form.pm line 16.
Compilation failed in require at /usr/local/cpanel/whostmgr/bin/dnsadmin line 23.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/bin/dnsadmin line 23.
+===================================+
New Account Info
+===================================+
Domain: netfreehost.com
Ip: 69.46.6.168 (n)
HasCgi: n
UserName: yujin
PassWord: e9r9r9e
CpanelMod: x
HomeRoot: /home
Quota: 10 Meg
NameServer1: ns1.shoeserver.com
NameServer2: ns2.shoeserver.com
NameServer3:
NameServer4:
Contact Email:
+===================================+
This ok?


It shows the error. Perl module Tie::IxHash missing.

Installed it with Cpan

# cpan
> install Tie::IxHash
> exit


Now everything is working fine.

Saturday, October 15, 2005

mod_layout Installation and Segmentation fault

mod_layout is an Apache module that provides both a Footer and Header directive to automagically include output from other URIs at the beginning and ending of a Web page. It can be used to wrap documents for a standard look and feel for a site (or to insert banners on any given document in a site). Currently known to support mod_perl, PHP and Apache JServ. Should support just about any type of handler.

http://freshmeat.net/projects/mod_layout/

Today a client asked to install mod_layout on the server. This was already installed, but not working.

So i download and install it again.

wget http://www.tangent.org/download/mod_layout-3.2.1.tar.gz
tar zxvf mod_layout-3.2.1.tar.gz
cd mod_layout-3.2.1
make
make install


Now i edited httpd.conf

And added LayoutHeader and LayoutFooter Directive as below.

<virtualhost>
ServerAlias domainstobuy.com
ServerAdmin webmaster@domainstobuy.com
DocumentRoot /home/domains/public_html
BytesLog domlogs/domainstobuy.com-bytes_log
ServerName www.domainstobuy.com

User domains
Group domains
LayoutHeader /home/header.html
LayoutFooter /home/footer.html

CustomLog /usr/local/apache/domlogs/domainstobuy.com combined
ScriptAlias /cgi-bin/ /home/domains/public_html/cgi-bin/
</virtualhost>


Now restarted Apache

/usr/local/apache/bin/apachectl restart

But getting error like

/etc/init.d/httpd: line 308: 27959 Segmentation fault (core dumped) $HTTPD -t >/dev/null 2>&1
/etc/init.d/httpd restart: configuration broken, ignoring restart
/etc/init.d/httpd restart: (run 'apachectl configtest' for details)

The problem is corrected by Editing Makefile of mod_layout and reinstalling it.

cd mod_layout-3.2.1
vi Makefile

Then remove the option -DDEBUG

make
make install


/usr/local/apache/bin/apachectl restart

Now mod_layout working fine.

Sunday, October 02, 2005

Fantastico missing in Cpanel

On a Cpanel/WHM server, Fantastico is missing in Cpanel. I checked WHM, bout could not find Fantastico link in WHM. So i reinstalled Fantastico and it started working.

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz


Now go to WHM, login as root and follow the link
WHM -> Add-Ons -> Fantastico De Luxe WHM Admin (scroll down the left menu).

And click on Install Link.