Friday, 20 June 2014

List installed perl modules

You can list installed perl modules using the below command

 

instmodsh

Available commands are:

 l – List all installed modules

 m <module> – Select a module

 q – Quit the program

 cmd? l


 

 

Installed modules are:



Acme::Spork

AppConfig

Archive::Tar

Archive::Tar::Streamed

Archive::Zip

Authen::Libwrap

BSD::Resource

Business::OnlinePayment

Business::OnlinePayment::AuthorizeNet

Business::UPS

CDB_File

CPAN

CPAN::DistnameInfo

CPAN::SQLite

Carp

Class::Accessor

Class::ErrorHandler

Class::Inner

Class::Inspector

Class::Load

Class::Singleton

Class::Std

Class::Std::Utils

Clone

Compress::Bzip2

Compress::Raw::Bzip2

Compress::Raw::Zlib

Convert::ASN1

Crypt::GPG

Crypt::OpenSSL::RSA

Crypt::OpenSSL::Random

Crypt::Passwd::XS

Crypt::PasswdMD5

Crypt::RC4

Crypt::SSLeay

Curses

Curses::UI

Cwd

DBD::SQLite2

DBD::mysql

DBI

DBIx::MyParsePP

Data::Dump

Data::Dumper

Data::MessagePack

Data::OptList

Date::Parse

DateTime

DateTime::Locale

DateTime::TimeZone

Devel::Symdump

Digest::HMAC

Digest::MD5

Digest::MD5::File

Digest::Perl::MD5

Digest::SHA

Digest::SHA1

Dist::CheckConflicts

Email::Address

Email::Date::Format

Email::MIME

Email::MIME::ContentType

Email::MIME::Encodings

Email::MessageID

Email::Simple

Email::Valid

Encode::Detect

Encode::Locale

Error

Expect

ExtUtils::CBuilder

ExtUtils::MakeMaker

File::Find::Rule

File::Find::Rule::Filesys::Virtual

File::HomeDir

File::Listing

File::MMagic::XS

File::NFSLock

File::Path::Tiny

File::Slurp

File::Tail

File::Temp

File::Touch

File::Which

Filesys::Df

Filesys::Statvfs

Filesys::Virtual

Filesys::Virtual::Plain

GD

GD::Graph

GD::Text

Geo::IPfree

Geography::Countries

Getopt::Param::Tiny

GnuPG

Graph::Easy

Graph::Flowchart

HTML::StripTags

HTML::Template

HTTP::Cookies

HTTP::Daemon

HTTP::Daemon::App

HTTP::Daemon::SSL

HTTP::Date

HTTP::Message

HTTP::Negotiate

IO::Compress

IO::HTML

IO::Interactive::Tiny

IO::SessionData

IO::Socket::ByteCounter

IO::Socket::INET6

IO::Socket::SSL

IO::Stringy

IO::Tty

IO::Zlib

IP::Country

IPC::Pipeline

IPC::Run

IPC::Run3

Image::Size

JSON::XS

LWP

LWP::MediaTypes

LWP::Protocol::https

Lchown

Linux::Inotify2

List::Cycle

List::MoreUtils

Locale-Maketext

Locale::Maketext::Utils

Locales

Log::Log4perl

MD5

MIME::Lite

MIME::Types

MLDBM

Mail

Mail::Alias::Reader

Mail::DKIM

Mail::DomainKeys

Mail::SPF

Mail::SRS

Mail::SpamAssassin

Math::Base85

Math::BigInt

Math::Fibonacci

Math::Fibonacci::Phi

Module::Build

Module::Implementation

Module::Metadata

Module::Runtime

Module::Want

Mozilla::CA

MySQL::Diff

Net

Net::AIM

Net::DAV::Server

Net::DNS

Net::DNS::Resolver::Programmable

Net::Daemon

Net::Daemon::SSL

Net::FTPSSL

Net::HTTP

Net::HTTPS::Any

Net::HTTPTunnel

Net::IDN::Encode

Net::IP::Match::Regexp

Net::IPv4Addr

Net::LDAP

Net::LDAP::Server

Net::LibIDN

Net::OSCAR

Net::SNMP

Net::SOCKS

Net::SSLeay

Net::Server

NetAddr::IP

Number::Compare

OLE::Storage_Lite

Package::Stash

Package::Stash::XS

Params::Util

Params::Validate

Parse::CPAN::Meta

Parse::RecDescent

Perl

Perl::OSType

Probe::Perl

Proc::Daemon

Quota

Regexp::Assemble

SOAP::Lite

SQL::Statement

SVG::TT::Graph

Safe::Hole

Set::Crontab

Socket6

Spreadsheet::ParseExcel

Spreadsheet::WriteExcel

String::CRC32

Sub::Install

Sub::Uplevel

Sys::Hostname::Long

Sys::Mmap

Task::Cpanel::Core

Task::Weaken

Template

Term::ReadKey

Term::ReadLine

Test::Carp

Test::Deep

Test::Exception

Test::Fatal

Test::Harness

Test::NoWarnings

Test::Requires

Test::Script

Test::Simple

Test::Tester

Test::Unit

Test::Warn

Text::CSV

Text::CSV_XS

Text::Glob

Tie::DBI

Tie::IxHash

Tie::ShadowHash

Tree::DAG_Node

Tree::MultiNode

Try::Tiny

Types::Serialiser

URI

Unix::PID

Unix::PID::Tiny

WWW::RobotRules

Web::Detect

XML::LibXML

XML::NamespaceSupport

XML::Parser

XML::SAX

XML::SAX::Base

XML::SAX::Expat

XML::Simple

XML::Writer

YAML

YAML::Syck

cPanel::MemTest

common::sense

lib::restrict

local::lib

version

cmd?




Wednesday, 11 June 2014

ffmpeginstaller is a free software completely written in bash shell script. The purpose of this script is to build a video streaming platform in your Gnu/Linux server. So you can start video streaming websites and avoid the cost of installations. This script not only install FFmpeg but also all its friends packages. You can chose this script for building platform for most of the youtube clone software like clip-shre, sharemixer,shareigniter,etc,.


linuxeasy-ffmpeg-logo



What packages ffmpeginstaller install in your server?


Please see the complete list of packages below.


  • FFmpeg : FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video

  • MPlayer and MEncoder : MPlayer is a movie player.It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs.

  • A52 Decoder : Are you a hosting company and you like to sell PCI DSS compliance servers to your clients with support ? If so this is your plan

  • AMR-NB and AMR-WB : The Adaptive Multi-Rate (AMR) audio codec is a patented audio data compression scheme optimized for speech coding

  • Latest Codecs : Install latest codecs libs

  • FAAD2 : FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder

  • FAAC : FAAC is an MPEG-4 and MPEG-2 AAC encoder.

  • FLVtool2 : FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV )

  • LAME MP3 Encoder : LAME is a high quality MPEG Audio Layer III (MP3) encoder

  • Liba52 : Liba52 is a free library for decoding ATSC A/52 streams

  • Libogg : Ogg Lib collections

  • Opencore-AMR : Library of OpenCORE Framework implementation of Adaptive Multi Rate Narrowband and Wideband speech codec

  • Theora : Theora is a free and open video compression format

  • Vorbis-tools : Vorbis is a completely open, patent-free, professional audio encoding and streaming technology with all the benefits of Open Source

  • Libwmf : libwmf is a library for reading vector images in Microsoft’s native Windows Metafile Format (WMF)

  • MP4Box : MP4Box is a MP4 multiplexer

  • x264 : x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC format

  • Xvid : Open-source compression codec based on MPEG-4 ISO format


Friday, 6 June 2014

mod_reveseproxy Extract Client IP from reverse proxy

If you setup Apache 2.4 With mod_remoteip, the apache extended status always gives you the proxy IP, instead of client IP, actually this is due to that the mod_status set client IP very early when there is a TCP connection but no headers, Apache 2.4 allows per-request notion of overriding the client address, but not at this early stage. To overcome this issue, I would suggest you to use mod_reveseproxy apache module, the modules is completely based on mod_cloudflare and mod_remoteip.


To install, follow the instructions on:


wget https://raw.github.com/Prajithp/mod_reverseproxy/master/mod_reverseproxy.c

apxs -i -c -n mod_reverseproxy.so mod_reverseproxy.c

Configuration Directives


ReverseProxyEnable           (On|Off)          - Enable reverse proxy

ReverseProxyRemoteIPHeader X-Real-IP - The header to use for the real IP
address.
ReverseProxyRemoteIPTrusted 127.0.0.1 - What IPs to adjust requests for

Example Configuration




LoadModule reverseproxy_module modules/mod_reverseproxy.so

<IfModule reverseproxy_module>
ReverseProxyEnable  On
ReverseProxyRemoteIPHeader X-Real-IP
ReverseProxyRemoteIPTrusted 127.0.0.1
ReverseProxyRemoteIPTrusted 46.105.160.192
</IfModule>

NOTES:


  • If mod_cloudflare or mod_remoteip are already loaded on the same web server, the web server will crash because both modules try to set the remote IP to a different value.



https://github.com/Prajithp/mod_reverseproxy


Monday, 28 April 2014

How to Fix Plesk Horde Webmail

Sometimes you may see horde webmain in Plesk windows showing page not found errors or not working properly during sending email via Webmail.  Here is the general fix for all the problems.


"%plesk_bin%\websrvmng.exe" --reconfigure-webmail

"%plesk_bin%\defpackagemng.exe" --fix --type=webmail.horde


Wednesday, 23 April 2014

Usefull cPanel / WHM hidden Commands

Ever locked yourself out of your Server while making some iptables changes?  What about when you change your SSH port and then forget what you set it to?

These are common support tickets we receive at RSHosting. In many cases this is something our customer’s can fix on their own if they are using cPanel on thier VPS/Server.


cPanel comes with a number of “hidden” autofix commands that allow for administrators to fix common problems simply be logging into WHM and going to a special URL. Two of the most useful ones I’ve seen are flushing iptables and restarting SSH in “safe mode” (basically the default settings and port).


Flushing iptables rules



https://yourdomain.com:2087/scripts2/doautofixer?autofix=iptablesflush



Restart SSH in safe mode



https://yourdomain.com:2087/scripts2/doautofixer?autofix=safesshrestart



Once you hit the URL you will be prompted to log in. Simply enter your root password and cPanel will do the rest. These have definitely saved me on more than one occasion when my attempt to ’secure’ my server worked a little too well.  Remember that if you happen to also lock yourself out of WHM through iptables, you will not be able to hit the URL’s I mentioned.  In that case, contact support.

Other useful commands as well:


Reset the Firewall Settings



https://yourdomain.com:2087/scripts2/doautofixer?autofix=iptablesflush



Reset the SSH Settings



https://yourdomain.com:2087/scripts2/doautofixer?autofix=safesshrestart



bsdbindfix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=bsdbindfix



Autorepair



https://yourdomain.com:2087/scripts2/doautofixer?autofix=autorepair



Compress Zlib  



https://yourdomain.com:2087/scripts2/doautofixer?autofix=Compress-Zlib-1.42.tar.gz



Compresszlibfix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=compresszlibfix



dbdmysql



https://yourdomain.com:2087/scripts2/doautofixer?autofix=dbdmysql



Cooldiagnose_apache_conf



https://yourdomain.com:2087/scripts2/doautofixer?autofix=diagnose_apache_conf



fpindexfile



https://yourdomain.com:2087/scripts2/doautofixer?autofix=fpindexfile



libxml2-2.6.28.tar.gz



https://yourdomain.com:2087/scripts2/doautofixer?autofix=libxml2-2.6.28.tar.gz



libxml64fix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=libxml64fix



pro*



https://yourdomain.com:2087/scripts2/doautofixer?autofix=pro*



spamd_dbm_fix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=spamd_dbm_fix



test



https://yourdomain.com:2087/scripts2/doautofixer?autofix=test



vfilterfix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=vfilterfix



yumduprpmfix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=yumduprpmfix



resellerresourceacctounts



https://yourdomain.com:2087/scripts2/doautofixer?autofix=resellerresourceacctounts



horde_sqmail_current_fix



https://yourdomain.com:2087/scripts2/doautofixer?autofix=horde_sqmail_current_fix



Tuesday, 15 April 2014

Migrate a addon domain( or subdomain) to cPanel domain or vice versa

  • Download all emails under the account to be migrated using a mail client like outlook express

  • Download files backup & database backup of addon domain(or subdomain or main domain) with the help of a developer

  • Delete addon domain(or subdomain or main domain) from Cpanel or Reseller WHM

  • Recreate the domain as main domain(or addon domain or subdomain)

  • Recreate all email accounts in new addon domain(or subdomain or main domain). Please note that emails cannot be migrated to new account & it will remain in mail clients like outlook express

  • Upload all files to new main domain(or addon domain or subdomain) using FTP

  • Recreate databases in new main domain(or addon domain or subdomain)

  • Restore databases either using phpMyAdmin

  • Modify configuration files in the website to reflect new database names & user names

  • Check websites & ensure that it is working fine under new main domain(or addon domain or subdomain)

 


Friday, 4 April 2014

DNS Troubleshooting

 Safe to say that a majority of problems in any virtual hosting system will be related to DNS, because DNS requires cooperation of numerous systems, rather than single one, and DNS problems can cause trouble to nearly every service on a hosting system.


For DNS to work, must have correct glue records at your registrar, as well as correct records on your Virtualmin system (or whatever system you choose to use for DNS, if not the Virtualmin server). Also, any slaves must also have correct records, or you will experience intermittent resolution failures.


Glue Records


Checking your glue records can be done using the whois command.



whois example.com



Look for the “domain servers” or “name servers” section of the output. The resulting names must resolve to your DNS servers.


Glue records must be configured at your name service registrar. Virtualmin and Webmin have no control over records at your registrar, so problems must be corrected using whatever interface your registrar provides.


NS Records


The NS records on your Virtualmin server should match those found in the glue records discussed previously, or intermittent problems may result.


You can find the NS records for a given zone using the host command on your server:



host -t NS example.com



A Records Address records, or A records, are the basic building block of DNS zones. They map names to IP addresses. To check an A record, use the host command:



host example.com



You can also specify the name server used to resolve queries by adding the name or IP of the server you wish to query to the end of the command:



host example.com ns1.example.com



Or, if you aren’t sure about the nameserver IP address resolving correctly, you can use an IP:



host example.com 192.168.10.10



MX Records


Mail exchanger records, or MX records, provide mail servers the information they need to know how to deliver mail for a particular domain.


You can check an MX record with the host command:



host -t MX example.com