Author Archive

Cpanel: SMTP: Failed to write to socket: not connected (code: -1, response: )

Monday, February 20th, 2012

Error:

I am getting below error message when i try to send email via horde (or) roundcube (or) squirrelMail

Failed to set sender: info@emailaddress.com [SMTP: Failed to write to socket: not connected (code: -1, response: )]

Solution:1
Try to find csf firewall is installed on whm. If yes follow the below steps if not skip to Solution:2

1. Login to WHM
2.WHM > Plugins > ConfigServer Security&Firewall > Firewall Configuration
3.In that file, ensure that “SMTP_ALLOWLOCAL” has a 1 next to it. If it does not, change to 1 and click the “Change” button
4. Restart CSF

Solution:2
Try to find mail service is running
1. Login to server via ssh
2. Service exim status. If stopped execute the below command
3. Service exim restart.

Hope the above solutions might fix the issue.

List of free OpenVZ template

Monday, February 20th, 2012

Hi All,

I am here to share you few free openvz  template.

Centos:
centos-4-x86.tar.gz - 151 MB
centos-4-x86_64.tar.gz - 164 MB
centos-5-x86.tar.gz - 173 MB
centos-5-x86_64.tar.gz - 183MB
centos-6-x86.tar.gz - 192MB
centos-6-x86_64.tar.gz - 205MB

Debian:
debian-5.0-x86.tar.gz - 132MB
debian-5.0-x86_64.tar.gz - 134MB
debian-6.0-x86.tar.gz - 149MB
debian-6.0-x86_64.tar.gz - 151MB

Fedora:
Fedora 13 i386 - 154MB
Fedora 13 x86_64 - 163MB
fedora-15-x86.tar.gz - 204MB
fedora-15-x86_64.tar.gz - 204MB

Suse:
suse-11.3-x86.tar.gz - 187MB
suse-11.3-x86_64.tar.gz - 191MB
suse-11.4-x86.tar.gz - 186MB
suse-11.4-x86_64.tar.gz - 190MB

Ubuntu:
ubuntu-8.04-x86.tar.gz - 108MB
ubuntu-8.04-x86_64.tar.gz - 110MB
ubuntu-10.04-x86.tar.gz - 135MB
ubuntu-10.04-x86_64.tar.gz -138MB
ubuntu-10.10-x86.tar.gz - 129MB
ubuntu-10.10-x86_64.tar.gz - 135MB
ubuntu-11.04-x86.tar.gz - 121MB
ubuntu-11.04-x86_64.tar.gz - 127MB
ubuntu-11.10-x86.tar.gz - 123MB
ubuntu-11.10-x86_64.tar.gz - 125MB

Openvz template – Centos + Cpanel
CentOS 5 i386 w/cPanel  (32bit)
CentOS 5 x86_64 w/cPanel (64bit)

Openvz template – Centos + Webmin
CentOS 5 i386 w/Webmin (32bit)
CentOS 5 x86_64 w/Webmin (64bit)

 

Steps to copy an account to WHM via SSH

Wednesday, February 8th, 2012

Hi,

Below steps will explain you how to transfer hosting account from one server to other server via SSH rather than WHM method.

1. Log into the server that your copying the accounts from via SSH

2. # /scripts/pkgacct [username]

3. #scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/

4. Log into the [NEWSERVER] via SSH

5. #/scripts/restorepkg [username]

IF you are using different SSH port on new server. You need to follow below step rather than 3rd step

# scp -P portnumber cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/

domainname.com/cpanel is not working

Friday, January 20th, 2012

Hi,

I am here to provide you the solution which i have found from cpanel forum for domainname.com/cpanel is not working.

One of my client can able to access the domain name via cpanel port but unable to access it via /cpanel.

http://domainame.com:2082 — > works

http://domainname.com/cpanel  —- > Not working

Solution:

1. Need to check the httpd.conf file on server whether it have the below lines.If not we need to add it.

ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi

2.Open /var/cpanel/cpanel.config and search for alwaysredirecttossl word and change it to Zero.

3.Restart Cpanel.

That’s it. It will start to work

Rpm for Perl-GD

Monday, August 8th, 2011

Hi,

Below is the rpm required for Perl-GD

Perl-GD

rrdtool installation in centos

Monday, August 8th, 2011

Hi,

Easy way to install rrdtool in centos via yum

Add the below repo to your yum repo

#vim yum.repos.d

[rrdtool]
name=rrdtoll RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1

# yum install rrdtool

That’s it . You are done. !!!!!

Steps to install GD Library in Centos

Monday, August 8th, 2011

Hi,

You can download the GD library from the following url : Download

# tar -zxf gd-2.0.35.tar.gz
# cd 2.0.35
# ./configure
# make
# make install

# /usr/local/lib (default library location)
# /usr/local/include (library included files location)

# ./configure –prefix=/usr ( optional to upgrade) and do # make && make install

How to change Linux server time

Friday, August 5th, 2011

Command to change Linux server time to IST

# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

You can check by the below command

#date

How to add SPF & Domain Keys in a Server

Thursday, July 21st, 2011

Hi,

Using the below steps you can add SPF record on a linux server running WHM control panel

For example:
Domain name: www.secureslash.com
Username: secure

Command to add SPF record for a domain name:

# /usr/local/cpanel/bin/domain_keys_installer secure

once done restart the dns service (/etc/init.d/httpd restart)

Steps to enable SPF record in Cpanel

1.Login into Cpanel

2.Under Mail Menu Click ” E-Mail Authentication”

3.Click on enable under ” SPF”

Command to check SPF record for a domain

# host -t txt secureslash.com

Command to add Domain keys for a domain name:

#/usr/local/cpanel/bin/domain_keys_installer secure

once done restart the exim service (service exim restart)

Steps to enable Domain keys in Cpanel

1.Login into Cpanel

2.Under Mail Menu Click ” E-Mail Authentication”

3.Click on enable under ” Domain Keys”

How to assign multiple IP’s in Debian Linux

Friday, May 14th, 2010

Debian Linux command to get into network interface card

#vi /etc/network/interfaces

How to assign multiple IP addresses in debian linux:

You can assign multiple IP addresses to the same network interface by using interface alias. This is useful if you need to have more than one server visible on the internet. Note that for multiple Apache servers you can use virtual hosts to add as many servers as you like with one single IP address.Apache simply utilises the domain name supplied by the client in the http host header.

You must turn off dhcp because you must use static assignment if you are configuring multiple IPs, so basically this file is:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.90
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

Assuming that you interface is eth0, you can assign three IP addresses editing /etc/network/interfaces similar to this:

# the loopback interface
auto lo
iface lo inet loopback

#
auto eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

auto eth0:0
iface eth0:0 inet static
address 192.168.1.41
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:1
iface eth0:1 inet static
address 192.168.1.43
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:2
iface eth0:2 inet static
address 192.168.1.44
netmask 255.255.255.0
broadcast 192.168.1.255

Note that gateway is only assigned to eth0. If you include dns-nameservers, it should also only be specified for eth0.

If you make changes to this file you can cause them to take effect by running:
/etc/init.d/networking restart

# /etc/init.d/networking restart
Reconfiguring network interfaces…if-up.d/mountnfs[eth0]: waiting for interface eth0:0 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS mounts (warning).
done.

How to fix  if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS mounts (warning). ?

Reconfiguring network interfaces…if-up.d/mountnfs[eth0]: waiting for interface eth0:0 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS mounts (warning).
done.

Solution:

It means that it is making sure that all ‘net interfaces are up before trying to mount a network based filesystem.

Creating Administrator Account in two simple steps

Sunday, August 10th, 2008

To create Administrator Account using command prompt:
First  goto Start —> Run and type cmd

First Command:
c:/>net user secureslash /add shortcut
secureslash is the name of the user
shortcut is the password for the user secureslash
First Command Creates a normal user under a name secureslash

Second Command:
c:/>net localgroup administrators secureslash /add
Second Command changes the normal user to a administrator user

To check the number to administrators user type
c:/>net localgroup administrators

Windows Password Breaking Tool

Tuesday, August 5th, 2008

Windows Password Expert is a program to reset Windows 2000 /XP/ 2003 Passwords if Administrator password is lost.

windows password hacking,windows password breaking

Features:
* 100% recovery rate
* New accounts could be created ,so other accounts can be brute-forced later on
* Resets passwords directly from a bootable CD-ROM, no floppy drive required
* Windows 2003 Server is supported
* Windows XP Home and Professional Editions are supported
* Windows 2000 Professional, Server and Advanced Server are supported
* All Service Packs are supported
* Active Directory supported
* Windows Vista(Beta Version) is supported
Click here to download – Download

Password:secureslash