About us Our Team Infrastructure Testimonials Contact
Operating System Control Panel Common Issues
Help Desk Support Live Chat Support Email Support
Starter Plan Shared Plan Dedicated Staff Plan Sales Plan
Server Management Script Installation Website Migration

aboutus

 


August 30, 2009

Uninstall fantastico on cPanel dedicated server

Filed under: cPanel — admin @ 4:18 pm

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.




July 22, 2009

Temporary URL for Direct Admin control panel

Filed under: General — admin @ 5:40 pm

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.




July 12, 2009

Install sBNC on a linux dedicated server

Filed under: General — admin @ 8:11 am

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.




June 27, 2009

Install PDFlib PHP on cPanel Dedicated server

Filed under: Install, cPanel — admin @ 4:13 pm

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.




June 16, 2009

Zen cart smtpauth gmail configuration port 465 issue on cPanel VPS

Filed under: cPanel — admin @ 4:34 pm

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.




May 18, 2009

session.save_path error php.ini on cpanel VPS

Filed under: cPanel — admin @ 6:03 pm

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.




April 1, 2009

Hostname A entry missing in cpanel.

Filed under: cPanel — admin @ 8:39 pm

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.




March 28, 2009

How to repair MySQL table from SSH

Filed under: MySQL — admin @ 9:59 pm

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.




March 24, 2009

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

Filed under: Exim — admin @ 11:22 am

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.




March 14, 2009

Sendmail starts very slow on linux dedicated server

Filed under: General — admin @ 3:32 pm

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.



« Newer PostsOlder Posts »
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
© Copyrights 2010 Support Facility. All rights reserved.