support facility
Currently having 57 visitors online.
outsource trial support web hosting support
outsource live chat outsource hosting support 24x7 hosting support
outsource hosting home outsource hosting company outsource hosting technical support outsource hosting 24x7 support outsource hosting plans outsource hosting plans  

Check if a PHP function name if available on dedicated linux server

November 20th, 2008

If you have your site hosted on a linux based dedicated server and are looking if the “php function” that you need is available or not on the server, a small piece of php code can help you find it. You have to created a file for ex. functions-in.php and add the below code in it – further browse the file in your favourite browser. http://www.yourdomain.com/functions-in.php

<?php
if (function_exists('FUNCTION_NAME')) {
echo "Function is available.<br />\n";
} else {
echo "Function is not available.<br />\n"; }
?>

It will display the result within your php page.

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 using yum

November 8th, 2008

First of all you may ask what is ImageMagick? It is a software suite for image manipulation and display, ImageMagick supports hundreds of image formats on a dedicated server on which it is installed.

Following are the commands to install ImageMagick using yum

root# yum install glib
root# yum install glib2
root# yum install libpng
root# yum install libjpeg
root# yum install libtiff
root# yum install ghostscript
root# yum install freetype
root# yum install ImageMagick
root# yum install ImageMagick-perl

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 munin on Plesk dedicated server

October 31st, 2008

Get your servers monitored by munin and you can see the output in graphical view for the following:

  • load average
  • memory usage
  • CPU usage
  • MySQL throughput
  • eth0 traffic and more…

I have used centos for munin installation. The steps for installation are as below:

Add rpmforge repositories

root# rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
root# yum -y install munin

My document root is /var/www/html/ (Plesk server)

root# cp -r /var/www/munin /var/www/html/
root# chown -R munin:munin /var/www/html/munin

Now, restart apache server

root# /etc/init.d/httpd restart

Now, check it using the browser

http://xxx.xxx.xxx.xxx/munin (xxx.xxx.xxx.xxx is your server IP)

Now, add a munin node – for this do the following

root# yum -y install munin-node

Now configure it using editor of your choice

root# nano /etc/munin/munin-node.conf

Find the line and make the necessary changes

* Allow the graph server (server.example.com/xxx.xxx.xxx.xxx) to poll the node.
allow ^xxx\.xxx\.xxx\.xxx$

Start the munin node on your server

root# service munin-node start
root# nano /etc/munin/munin.conf
[client.example.com]
address xxx.xxx.xxx.xxx
use_node_name yes

Remember to open port tcp/4949 in the firewall of the node

root# iptables -A INPUT -p tcp --dport 4949 -j ACCEPT

Let us know if this helped you.. your feedback is very vital for us.

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 VNCserver on linux (Remote desktop linux)

October 28th, 2008

Windows can be connected using Remote Desktop, linux users can connect to shell (ssh) using ssh clients like putty. Now, what if you need to view linux gnome desktop and that too remotely? Yes, this is possible with VNC ( Virtual Network Computing ) server. I will show you how to install it on centos.

You’ll need gnome desktop environment – if it is not installed on your system you can get it installed using yum; the commands are:

root# yum groupinstall "X Window System"
root# yum groupinstall "GNOME Desktop Environment"

If you get any errors about dependencies, I am sure you know how to get those packages installed.

Now, the VNC server is installed with the X Windows system. We will configure the VNC server now:

Edit the /etc/sysconfig/vncservers file with your favourite editor and uncomment the following two lines:

VNCSERVERS="5:root" # display port and username
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

Set password to VNC Server

root# vncpasswd

Edit the local config file in the root folder:

nano ~/.vnc/xstartup
Replace "twm &"   with "gnome-session &"

To start VNC server issue command

root# vncserver :5

To stop VNC server issue command

root# vncserver -kill :5

Connecting with VNC client

Start VNC Server by issuing the command

root# vncserver :5

Open your favourite VNC client and type your server’s IP followed by the port number

xxx.xxx.xxx.xxx:5 (where xxx.xxx.xxx.xxx is the IP)

5 is the port set within the /etc/sysconfig/vncservers file

VNC login

Enter your servers password and access the linux remote desktop.

VNC authentication

Here is your remote desktop

VNC server

Did this post help you? please leave your feedback for us.

ionCube autoinstaller script

October 16th, 2008

ionCube php loader is the PHP extension that decodes encrypted PHP files on runtime, usually this is already installed on any web server whether it be used for shared hosting, reseller hosting or on your dedicated web servers.

If for some reason you don’t have it installed on your linux server, you can use the below shell script created by one of our system administrator.

Create a file named ioncubeinstaller.sh and paste the below code in the file:


#!/bin/bash
# Supportfacility.com

WHO=$(whoami)
if [ ${WHO} == "root" ]
then
echo “Script Initialized …”
else
echo “You must be logged in as root to install ionCube Loader.”
echo “Terminating …”
exit 0
fi

echo “Changing directory”

cd /usr/local/

echo “Done.”

if [ -e ioncube_loaders_lin_x86.tar.gz ]
then
rm -f ioncube_loaders_lin_x86.tar.gz
fi

echo “Downloading files”

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

echo “Done.”

echo “Installing files”

tar -zxvf ioncube_loaders_lin_x86.tar.gz

echo “Done.”

echo “Changing ownership”

chown -R root.root ioncube

echo “Done.”

phpline=`php -v | grep ^PHP | cut -f2 -d ” “| awk -F “.” ‘{print “zend_extension=\”/usr/local/ioncube/ioncube_loader_lin_”$1″.”$2″.so\”"}’`
phpinifile=`php -i | grep php.ini | grep ^Configuration | cut -f6 -d” “`

echo “Adding line $phpline to file $phpinifile”
echo “$phpline” >> $phpinifile

rm -f ioncube_loaders_lin_x86.tar.gz

echo “Ioncube installed sucessfully”

Then, change the permissions of the file to 755

root# chmod 755 ioncubeinstaller.sh

And execute it with

root# ./ioncubeinstaller.sh

This has been tested on cPanel, Plesk, DirectAdmin dedicated servers and will work on any linux server

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

Set catch all email address for cPanel using SSH

September 29th, 2008

On a cPanel server, you have a domain and want to set a catch all email address using SSH. You just have to do the following:

Login to your server as root

root# nano /etc/valiases/yourdomain.com

If you want to set the catch all email to something@somedomain.com do the following:

*: something@somedomain.com

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.

Plesk : Configure qmail to use alternate SMTP port 26

September 25th, 2008

You have a plesk dedicated server and having issues related to SMTP port 25. There are issues where ISP blocks SMTP port 25, in this case we can use alternate port (I will use port 26).
Kindly follow the below steps to change SMTP port on your plesk dedicated (linux) server to 26.

Login to your server as root

root# cd /etc/xinetd.d
root# ls -l | grep smtp*
root# cat smtp_psa
service smtp
{
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
server = /var/qmail/bin/tcp-env
server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}
root# nano /etc/services

Add the below lines

smtp_psa_new 26/tcp mail
smtp_psa_new 26/udp mail
root# cp smtp_psa smtp_psa_new

Change the service line in the new file “smtp_psa_new” to be this:

service smtp_psa_new
{
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
server = /var/qmail/bin/tcp-env
server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}
root# /etc/init.d/xinetd restart

And you should see smtp listening on ports 25, and 26:

root# netstat -anp | grep xinetd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6989/xinetd
tcp 0 0 0.0.0.0:26 0.0.0.0:* LISTEN 6989/xinetd

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.

Timezone for PHP scripts

September 24th, 2008

If you only want particular PHP scripts (and not shell or other cgi scripts) to use a specific timezone, set the timezone environmental variable in your PHP code like so:


<?
echo "Original Time: ". date("h:i:s")."\n";
putenv("TZ=US/Eastern");
echo "New Time: ". date("h:i:s")."\n";
?>

If you put the line putenv(”TZ=US/Eastern”); in a file that is include()’ed by all your other PHP scripts, then your all PHP scripts will use that timezone.

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 install qmHandle on plesk server ?

September 24th, 2008

On your plesk dedicated server you already have qmail as your mail server and now you’re looking to manage the qmail message queue. qmHandle is the simple program for this.

Install qmHandle on plesk dedicated server using the below steps:

Login to the sever as root.

Download the tar from here using the following command:

root# wget
http://jaist.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.3.2.tar.gz
root# tar -zxvf qmhandle-1.2.0.tar.gz
root# chmod 755 qmHandle
root# ./qmHandle –h

Few commands of qmhandle :

List help for qmhandle commands.

qmHandle -h 

Show statistics for qmail mail queue

qmHandle -s

Deliver all mails in mail queue.

qmHandle -a

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.

Lost Joomla admin password - how to reset ?

September 19th, 2008

On cPanel dedicated server, I have come around where people have lost their Joomla admin password and don’t know what to do. Don’t get panicked, be patient – I will show how you can reset your lost admin password for your Joomla website.

First within you cPanel control panel; goto PHPMyAdmin and select the Joomla database that you have, once selected check for the table named jos_users click on it and browse the table; on the right side you will see your admin login name (I assume it is admin, some may have different as they have set when Joomla was installed) in front of the username under the column named “password” you will see some encrypted value make sure the “usertype” column contains “super administrator”. Now, click on the pencil (to edit) and in front of password put the value “21232f297a57a5a743894a0e4a801fc3” without the quotes, which means that your password is “admin” and click on “Go”. That’s all , you have reset the password.

Now, you can check by logging in to your Joomla site. It should be working now.

Note: Works for both Joomla 1.0 and Joomla 1.5 versions.

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.


Home | Company | Testimonials | Infrastructure | Contact | Outsourcing Advantages | How outsourcing works | Web Hosting Support Articles
� 2007. Support Facility.com Privacy and Policy