Archive for December 2011

Command to check perl modules installed on the server

If you want to list all the installed perl module’s on the server then you can use the instmodsh command .

instmodsh command provides an interactive shell interface to query details of locally installed Perl modules.

 

[email protected][#] instmodsh

you will get the output like ::

Available commands are:
   l            - List all installed modules
   m <module>   - Select a module
   q            - Quit the program
cmd?

at cmd ? command prompt type l to get list of all installed perl modules

 

Output ::

 

cmd? l
Installed modules are:
   Acme::Spork
   AppConfig
   Archive::Tar
   Archive::Tar::Streamed
   Archive::Zip
   Attribute::Handlers
   Authen::Libwrap
   BSD::Resource
   Bundle::Interchange
   Business::OnlinePayment
   Business::OnlinePayment::AuthorizeNet
   Business::UPS
   CDB_File
   CGI
   CPAN
   CPAN::DistnameInfo
   CPAN::Meta
   CPAN::Meta::YAML
   CPAN::SQLite
   Class::Accessor
   Class::Load
   Class::MakeMethods
   Class::Singleton
   Class::Std
   Class::Std::Utils
   Clone
   cmd?

 

That’s all.

 

 

 

Nameserver IP’s Missing in WHM?

Some time’s it happens that when you try to access the name-server IP’s from  WHM >> Main >> DNS Functions >> Nameserver IPs it either shows no IP’s or show incorrect information.

To fix the issue you need to correct the entries for the name-server’s IP in the below two files ::

1>

/etc/nameserverips

 

2 >

 /var/cpanel/nameserverips.yaml

 

Firstly, check the entries in the /etc/nameserverips file and it should show the below output ::

 

[email protected] [~]# cat /etc/nameserverips
192.168.1.1=ns1.yourdomain.com
192.168.1.2=ns2.yourdomain.com

And if the entries in the above files are correct then check the next file it should show the below output ::

 

[email protected] [~]# cat /var/cpanel/nameserverips.yaml
---
ns1.yourdomain.com:
"192.168.1.1": 1
count: '1'
zones: yourdomain.com
ns2.yourdomain.com:
"192.168.1.2": 1
count: '1'
zones: yourdomain.com

If the above entries are missing in the above file then add those as shown in the example.

That’s all.