Archive for the ‘General’ Category



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.


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.


Lost Joomla admin password – how to reset ?

Friday, 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.


Rvskin giving error on cPanel server

Thursday, July 3rd, 2008

For some reason when upcp completed on cPanel server rvskin started giving errors like below:


......................
.....................
main::cpanel_parse('GLOB(0x9c3af58)') called at cpanel.pl line 2912
main::doinclude('rvbranding/indexheader.html', 2) called at cpanel.pl line 1673
main::exectag('<cpanel relinclude="rvbranding/indexheader.html">') called at cpanel.pl line 4797
main::dotag(undef) called at cpanel.pl line 4664
......................................................
.....................................................

To get this fixed do the following:

root# mkdir /root/rvadmin
root# cd /root/rvadmin
root# rm -f rvauto.tar.bz2
root# wget http://download.rvglobalsoft.com/download.php/download/rvskin-auto/saveto/rvauto.tar.bz2
root# tar -xvjf rvauto.tar.bz2
root# perl /root/rvadmin/auto_rvskin.pl

This worked 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.


Disk space commands on linux

Tuesday, July 1st, 2008

Linux console is the best place for a system admin, some useful commands to check disk space on a linux system are:

Show files by size, biggest last:

ls -lSr 

Show top disk users in current dir.

du -s * | sort -k1,1rn | head

Show free space on mounted filesystems

df -h

Show free inodes on mounted filesystems

df -i 

Show disks partitions sizes and types

fdisk -l

List all packages by installed size (Bytes) on rpm distros

rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n

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.


Open remote desktop connection from console on windows

Wednesday, June 18th, 2008

If you looking to open remote desktop connection using console, do the following:

Open command prompt
Then, type: mstsc /console
This will start the remote desktop, type the computer IP to which you need to connect.
Configure the options and then click on connect.

To view all the options, in the console type: mstsc /?

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.


Chkconfig to activate and deactivate services

Tuesday, June 3rd, 2008

The chkconfig command can be used to activate and deactivate services. You use “chkconfig –list” to query a service in “/etc/rc.d”, that service’s settings for each runlevel are displayed. For example, the command “chkconfig –list httpd” returns the following output:

httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Viewing chkconfig Entries:

root@server# chkconfig –list | grep on

Modifying a chkconfig entry is almost as easy as listing the existing configuration. The form is:

chkconfig [--level <levels>] <name> <on|off|reset>

Runlevels (–level)

0. System halt
1. Single-user mode
2. Multiuser, without NFS
3. Complete multiuser mode
4. User defined
5. X11 (XDM login)
6. Reboot

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.


Find top large files and directories

Monday, June 2nd, 2008

If you want to find large files and directories within your directory in linux here is the command:

du -sh /home/username/* | sort -nr | head

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


Find command in linux

Saturday, May 24th, 2008

Find is a wonderful command that is used in day to day. Some useful commands on find are as follows:

- To search the system for files that were modified within the last three days:

root@server# find / -mtime -3 -print

- List all files named core in the directory /test

root@server# find /test -name core

- To search the current directory and subdirectories for files beginning with name “conf” and prints the path:

root@server# find . -type f -name ‘conf*’ -print

To search in the current directory and all sub directories all files that contain the string “test” and will have their path printed to standard output.

root@server# find . -exec grep -q “test” ‘{}’ \; -print

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