Archive for 2009



Delete an IP address from linux cPanel dedicated server

Thursday, December 10th, 2009

Normally, to delete an IP from a cPanel server you can login to WHM and remove the IP using the function “Show or delete current IP address” under “IP functions” or use linux command.

For some reason we were having problems with the datacenter and we were asked to remove the IP using KVM. In this case, we entered the KVM and checked the if the IP was listed on the server by using ifconfig – we found that the IP was listed there. To remove the IP edit the file.

root@server# nano /etc/ips

and now remove the line of the IP and then restart the ipaliases service by the command

root@server# service ipaliases restart

It will show failed, you can ignore those warnings. And you can recheck if the IP has gone by using the command ifconfig. You’ll see the IP is not seen in the ifconfig output. Now, you can ask the datacenter to get the server online and then if you check from the WHM you will see that the IP is not available there.

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.


WordPress blog upgrade

Tuesday, November 17th, 2009

If you’re looking to upgrade your WordPress blog, please check this URL.

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.


Quota issue related to statistics log on plesk dedicated server

Saturday, October 31st, 2009

While working on a quota issue for a domain on a plesk dedicated server, we found that the disk usage for the domain in the plesk control panel was overused. When checked from SSH the actual disk usage showed very low. The problem here was due to stats not getting updated for this particular domain.

To get this issue fix, you need to update the statistic logs for this domain on the plesk.

First of all login in to the server by the root access, use the below command to update the statistics for all the domains on the server.

/usr/local/psa/admin/sbin/statistics

Later, we updated the stats for the domain by the below command:

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.com

This fixed the statistics issue, as well as everything in the plesk control panel for disk usage shows fine now for the domain.

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.


Exim error on a cPanel server – host lookup did not complete

Wednesday, September 23rd, 2009

On a shared cPanel web server, we came around below error:

some-email@gmail.com cannot be resolved at this time: host lookup did not complete

So while troubleshooting this error, we found that the problem was in /etc/resolv.conf

There were invalid IPs there, just changing them the right ones fixed the problem for us.

Hope this helps guys who come around this error. If anyone has come around such error and have a different way to fix it – you can reply here with your solution!

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.


Uninstall fantastico on cPanel dedicated server

Sunday, August 30th, 2009

While installing fantastico we had issues with wget as you know this is well-known issue of fantastico. Once it was installed , but it was not successful. So, we decided to uninstall fantastico from this dedicated cPanel server and do a fresh installation of fantastico.

Below are the path where fantastico on your cPanel server, you can us the command “rm –rf <filename>” to delete the fantastico files and directories.

Once you have logged in SSH of your cPanel server with root logins, you can follow the below commands:

rm -rf /var/netenberg/
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/
rm -rf /usr/local/cpanel/3rdparty/fantastico*
rm -rf /usr/local/cpanel/base/frontend/*/fantastico
rm -f /usr/local/cpanel/base/frontend/x/cells/fantastico.html
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi

Now, you can proceed for a fresh installation of fantastico. I believe you know the steps to install fantastico. If not, we can help you with 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.


Temporary URL for Direct Admin control panel

Wednesday, July 22nd, 2009

On a linux dedicated server which has DirectAdmin control panel on it, if you have couple of sites under your user account and you need to view the site without changing the DNS. You can view the default domain by the URL;

http://server-ip/~username/

But, if you have an addon domain and need to view the site without changing the DNS, you can set the addon domain to default and view it with the above URL. The other way is to set the IP and domain name in the hosts file in your windows system.

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 sBNC on a linux dedicated server

Sunday, July 12th, 2009

One of our client needed sBNC to be installed on his dedicated server, here is how we helped him setup sBNC on his server.

Downloaded the source, kindly see below:

wget http://mirror.shroudbnc.info/sbnc-current.tar.gz
tar -zxf sbnc-current.tar.gz
cd sbnc-1.1
ls
./configure

Here we got an error of c++ compiler:

configure: error: C++ compiler cannot create executables

To fix this, you need to install c++ compiler on your system. I did it using yum:

yum install gcc-c++

After this is done, again giving the below command to install it:

./configure # without SSL-support
./configure --enable-ssl=yes # with SSL-support
make
make install

Now, if you need web interface, you will have to do this:

cd tickle
./configure
make
make install

Got errors while “make” , TCL was not installed on the server – you can install TCL on your dedicated server by doing this:

wget http://mesh.dl.sourceforge.net/sourceforge/tcl/tcl8.4.13-src.tar.gz
tar xfvz tcl8.4.13-src.tar.gz
cd tcl8.4.13/unix
./configure
make
make install

Then, you can proceed for the configuration by the conftool:

cd sbnc/sbnc
./conftool

Here, you can set the port number, username and password.

Start sbnc by:

./sbnc

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 PDFlib PHP on cPanel Dedicated server

Saturday, June 27th, 2009

One web developer contacted us and requested us to install PDFlib on their cPanel dedicated server which has PHP 5. As you must be knowing that PDFlib is not supported in the current cPanel easyapache, and especially with PHP 5 so we installed PDFlib Lite manually for him. Here is how we had installed it for them:

Download the pacakge, their official site is www.pdflib.com

root@server# wget http://www.pdflib.com/binaries/PDFlib/703/PDFlib-Lite-7.0.3.tar.gz
root@server#  tar xvzf PDFlib-Lite-7.0.3.tar.gz
root@server#  cd PDFlib-Lite-7.0.3
root@server#  ./configure --prefix=$HOME/usr --without-java
root@server#  make
root@server#  make install

Once this is done, we built PDFlib DSO by the below commands:

root@server#  cd ~/tmp
root@server#  pecl download pdflib
root@server#  tar xvzf pdflib-*.tgz
root@server#  cd pdflib-*
root@server#  phpize
root@server#  ./configure --with-pdflib=$HOME/usr
root@server#  make
root@server#  make test

Then, copied the PDFlib extensions to a seperate directory:

root@server#  cd ~
root@server#  mkdir extensions
root@server#  cp ~/tmp/pdflib-*/modules/pdf.so ~/extensions

Added the extensions in the php.ini using the below steps:

root@server#   php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

Add the below line in php.ini

root@server#  nano /usr/local/lib/php.ini

extension_dir = "/root/extensions"
extension = "pdf.so"

Save php.ini file
Create a test PHP file under your domain to check if it works, below is the test code:


<?php

try {
$p = new PDFlib();

/*  open new PDF file; insert a file name to create the PDF on disk */
if ($p->begin_document(“”, “”) == 0) {
die(“Error: ” . $p->get_errmsg());
}

$p->set_info(“Creator”, “hello.php”);
$p->set_info(“Author”, “Rainer Schaaf”);
$p->set_info(“Title”, “Hello world (PHP)!”);

$p->begin_page_ext(595, 842, “”);

$font = $p->load_font(“Helvetica-Bold”, “winansi”, “”);

$p->setfont($font, 24.0);
$p->set_text_pos(50, 700);
$p->show(“Hello world!”);
$p->continue_text(“(says PHP)”);
$p->end_page_ext(“”);

$p->end_document(“”);

$buf = $p->get_buffer();
$len = strlen($buf);

header(“Content-type: application/pdf”);
header(“Content-Length: $len”);
header(“Content-Disposition: inline; filename=hello.pdf”);
print $buf;
}
catch (PDFlibException $e) {
die(“PDFlib exception occurred in hello sample:\n” .
“[" . $e->get_errnum() . "] ” . $e->get_apiname() . “: ” .
$e->get_errmsg() . “\n”);
}
catch (Exception $e) {
die($e);
}
$p = 0;
?>

You need to get the below output in PDF format within your browser.

Hello world!
(Says PHP)

Let us know if this was helpful 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.


Zen cart smtpauth gmail configuration port 465 issue on cPanel VPS

Tuesday, June 16th, 2009

On a ecommerce website which had zen cart, in the “email options” the email address set was a free gmail account. When configured email address as per zen cart documentation we were facing error – where it said :

SMTP Error: Could not connect to SMTP server.

Settings in Zen cart:

E-Mail Transport Method : smtpauth
E-Mail Linefeeds : LF
Use MIME HTML When Sending Emails : true
Verify E-Mail Addresses Through DNS : false
Send E-Mails : true
SMTP Server Host Address tls://smtp.gmail.com or smtp. gmail.com: smtp gmail.com
SMTP Server Port Number : 465
SMTP Authentication Required : true
SMTP Authentication Username your@domain.com or you@ gmail.com : someaccount@gmail.com
SMTP Authentication Password your password : my password

From the server the connection to gmail SMTP was perfect:

root@server [~]# telnet smtp.gmail.com 465

Trying 74.125.79.109...

Connected to smtp.gmail.com (74.125.79.109).

Escape character is '^]'.

So, the connection from server was perfect. But, from zen cart it was not connecting.

Solution:

OpenSSL was not available in PHP. So, we recompiled PHP with OpenSSL support and everything worked just great.

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.


session.save_path error php.ini on cpanel VPS

Monday, May 18th, 2009

While installing a third party product on a cPanel VPS , we came around an error:

The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.

To get this fixed, we have done the following:

Find the php.ini file

php -i | grep php.ini
Configuration file (php.ini) => /etc/php.ini

When checked the session.save_path it was not set, it was then set to /tmp.

session.save_path  = "/tmp"

And, all 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.