Archive for 2009



Hostname A entry missing in cpanel.

Wednesday, April 1st, 2009

Whenever you get a cPanel dedicated server or a VPS cPanel server from your service provider once cPanel is setup, you may come around an error “Your hostname A entry is missing”

This comes with a popup, you can click on the Add button within the popup. This will add A entry for your hostname.

You can check this in the DNS zone of the hostname. Which can be found at this path: /var/named/your.hostname.db

That’s it!

If you need to change hostname of your server, you can check it here.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


How to repair MySQL table from SSH

Saturday, March 28th, 2009

If you are getting an MySQL related error on your site for any database, you can repair the database through SSH from MySQL prompt.

For example:

Invalid SQL: SELECT * FROM `something` WHERE `id` = '151' ORDER BY `someid` ASC LIMIT 0,20; (Can't open file: 'sometable.MYI' (errno: 145))

Login to your server as root.

Firstly check the status of MySQL on your dedicated server. Normally, it should be ok – as you’re getting this error.

The database table can be repaired only if the Mysql server is in running status. You can check the status by the command.

root# /etc/init.d/myssql status

Now, login to the MySQL database for a required user.

mysql> mysql –u databaseusername –p database password databasename

You need to select that particular database having problem.

mysql> use databasename;

Now, you will have to check whether the table is corrupted. On giving the below command you will get a NULL value as your output if it is   corrupted otherwise it’s alright.

mysql> check table tablename;

If the table is corrupted for that particular database, then you need
to repair the table by giving the following command.

mysql> repair table tablename;

This will repair the table for you.
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


CPanel EXIM error – remote_smtp defer (111): Connection refused

Tuesday, March 24th, 2009

On a cPanel dedicated server, exim was unable to deliver emails and all the emails were stuck in mail queue. Here what we found in the exim_mainlog

2009-03-22 03:46:04 H=localhost (Server-IP) [127.0.0.1] Warning:
Sender rate 0.0 / 1h
2009-03-22 03:46:04 1LlJJk-0003cX-HY <= test@somedomain.com H=localhost (Server-IP) [127.0.0.1] P=esmtpa A=fixed_login:test@somedomain.com S=798 id=1853.17.23.12.34.1237711564.squirrel@Server-IP
2009-03-22 03:46:07 1LlJJk-0003cX-HY alt3.gmail-smtp-in.l.google.com [209.85.218.31] Connection refused
2009-03-22 03:46:10 1LlJJk-0003cX-HY alt4.gmail-smtp-in.l.google.com [209.85.221.10] Connection refused
2009-03-22 03:46:10 1LlJJk-0003cX-HY == ourtestmail@gmail.com R=lookuphost T=remote_smtp defer (111): Connection refused

While troubleshooting the issue, we found the following:

root@server [~]# iptables -nL

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  0.0.0.0/0            127.0.0.1           tcp dpt:25
REJECT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25
reject-with icmp-port-unreachable

You have to remove this two iptables rules.

root@server [~]# iptables -D OUTPUT 2
root@server [~]# iptables -D OUTPUT 1

You then have to save iptables and restart.

root@server [~]# /etc/init.d/iptables save
root@server [~]# /etc/init.d/iptables restart

Now, check your mails and you will see all the mails getting delivered.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Sendmail starts very slow on linux dedicated server

Saturday, March 14th, 2009

While working on a linux dedicated server without any control panel on it, the sendmail service starts very slow – it takes almost 7-10 minutes. While investigating the server, we checked the hostname and it was as below:

root# hostname
MarkSmith

we found that the hostname did not resolve, to get this fixed we used a valid domain which resolved to this server – so we changed the hostname of the server.

And, the sendmail responded very quickly and worked fine.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Plesk windows: Domain is not working with www

Monday, March 9th, 2009

On a plesk windows dedicated server, a domain worked without www but for some reason it did not work with www.

Login with administrator to the windows server.

Goto Start> Run > and type “inetmgr” (this opens IIS)

Right click on the domain and check properties

At the Website tab click on advanced and add the following there:

IP Port www.YourDomain.Com

For ex. xx.xx.xx.xx 80 www.YourDomain.com

Restart IIS and now check in your favourite browser and it should be working now.

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Install ImageMagick on dedicated cPanel server

Sunday, February 8th, 2009

If you need the version ImageMagick-6.4.9-2 to be installed on your cPanel dedicated server, we have followed the below steps which worked perfectly.

First, download the tar using the below command:

root# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
root# tar -zxvf ImageMagick.tar.gz
root# cd ImageMagick-6.4.9-2
root#./configure
root# make
root# make install

You can check the path for the installed ImageMagick by the command:

root# which convert
/usr/local/bin/convert
root# convert -v | head -n 1 | cut -c 22-26
6.4.9

OR

root# convert -v | grep Version:
Version: ImageMagick 6.4.9-2 2009-02-07 Q16 OpenMP http://www.imagemagick.org

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Unrouteable address on exim – cPanel

Thursday, January 29th, 2009

On a cPanel server we were facing problems while sending mails it was giving the below errors:

2009-01-29 15:58:22 1LSYLW-0005Is-8d <= root@hostname.com U=root P=local S=377
2009-01-29 15:58:22 1LSYLW-0005Is-8d ** user@domain.com: Unrouteable address

The solution for this issue is find if the domains entry is present within /etc/localdomains , /etc/userdomains and /etc/trueuserdomains . If the domains entry is missing in any of the file – do add the domain within the files.

Also, make sure that the domains entry is in the /etc/valiases/domain.com , if this file is blank do add the line:

*: username

Then, you can test the mail from your server using the command line:

root# mail -s "Test Mail" user@domain.com

Here are the exim logs, which says the delivery is completed.

2009-01-29 16:06:39 1LSYTX-0007Jo-6D => user <user@domain.com> R=virtual_user T=virtual_userdelivery
2009-01-29 16:06:39 1LSYTX-0007Jo-6D Completed

That’s it.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Kerio : unable to login in account

Saturday, January 24th, 2009

A user using kerio mail server is facing a problem connecting to their account using webmail interface and the Kerio sync connector is also rejecting the passwords.

Solution:

During investigation we have found that they were blocked n the sercurity policy, To get this fixed you will have to login to Kerio Admin console then over there 1. Click on Advance option under Configuration tab click on Security policy over there you will see”unlock all accounts now” just hit it.

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Install Asterisk on linux dedicated server

Saturday, January 24th, 2009

Asterisk is the world’s leading open source telephony engine and tool kit. Offering flexibility unheard of in the world of proprietary communications, Asterisk empowers developers and integrators to create advanced communication solutions…for free.

Asterisk® is released as open source under the GNU General Public License (GPL), and it is available for download free of charge. Asterisk® is the most popular open source software available, with the Asterisk Community being the top influencer in VoIP.

Official site : www.asterisk.org

Let’s start installing it on the server now.

Login to your server as root.

I am using asterisk 1.4 (I have done this on 64 bit server – make sure to download the right tarball) – you can download asterisk by the command:

root# wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.tar.gz

Now, we will start the installation process. If you get any errors of dependencies you will have to install it. I have installed it using yum ( few were ncurses, gcc, gcc-c++, zaptel, subversion) – install ncurses before the installation starts this will make “make menuconfig” command work perfect.

root# tar zxvf asterisk-1.4.23.tar.gz
root# cd asterisk-1.4.23
root#./configure
root# make menuconfig    -- hit 'x' to save and exit with default setting
root# make
root# make install
root# make samples
root# asterisk

Now, open the ports in the firewall by the commands:

root# iptables -I INPUT -p tcp --dport 8088 -j ACCEPT
root# iptables -I INPUT -p udp --dport 8088 -j ACCEPT
root# service iptables save
root# service iptables restart

root# iptables -I INPUT -p tcp --dport 5308 -j ACCEPT
root# iptables -I INPUT -p udp --dport 5308 -j ACCEPT
root# service iptables save
root# service iptables restart

Asterisk is installed, now proceeding to installation of Asterisk-GUI

svn checkout http://svn.digium.com/svn/asterisk-gui/branches/2.0/ asterisk-gui
cd asterisk-gui/
./configure
make
make install

Edit /etc/asterisk/http.conf with your favourite editor and change the following lines:

enabled=yes
enablestatic=yes
bindaddr=123.123.123.123

Where 123.123.123.123 is your server IP.

This enables the HTTP server, enables it to serve static content (the GUI itself) and binds to the standard address, so that any browser from a remote machine can access it.

Now, configuring the manager access
Edit /etc/asterisk/manager.conf and change the following lines:

enabled = yes
webenabled = yes

Then add a new section at the end of the file


[admin]
secret = supportfacility
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

This will allow a user called admin to connect with the password supportfacility and do nearly everything on the system.

Now restart Asterisk by the command:

root# asterisk

Do one last check with the command

make checkconfig

If everything goes well, and you get a “Good Luck” connect with your browser to:

http://Server-IP:8088/asterisk/static/config/cfgbasic.html

Username: admin
Password: supportfacility

This will take sometime and then you will get the below URL.

http://Server-IP:8088/asterisk/static/config/index.html

Start configuring your Asterisk now.

Best of luck!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Install cPanel on a dedicated server

Wednesday, January 21st, 2009

You have a fresh linux dedicated server from your data center and need to install cpanel on the server, to do so proceed with the following steps:

Login to your dedicated server as root

root# wget http://layer1.cpanel.net/latest
root# sh latest

Once installed access the server in your favourite browser by:

http://your-server-IP:2086

Follow the steps to get it setup properly.

That’s it!

Once cPanel is installed on your dedicated server, you must be thinking of migrating accounts from your old cpanel server to this new cpanel server. Isn’t it? For this you can check Hosting account migration manually on cpanel server – other than this the migration can also be done from cpanel to cpanel using copy accounts function.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.