HostOnNet Blog

Author Archives: flashweb

Exim not working

Today a client told exim is not working properly on his server running Fedora C4 and Cpanel. I checked /var/log/exim_mainlog Found root@shah [~]# tail -f /var/log/exim_mainlog 2005-12-07 05:55:46 failed to open /etc/localdomains for linear search: No such file or directory


FreeBSD Cpanel Server – Pear not working

In a FreeBSD 5.4 Cpanel server, Apache is compiled with pear, but is not working. The site worked well on Linux Cpanel server, but after moving to FreeBSD server, start getting following error Warning: main(DB.php): failed to open stream: No


Moving a site between Cpanel server

If you have root access, you can move site between cpanel servers easily. You can do this by login to WHM as root, then using “Transfers Function” At times big sites fail to tranefer with this WHM feature. To move


Cpanel Show Current Disk Usage not working

In a Cpanel server running FreeBSD 5.4, Show Current Disk Usage link on WHM is not working. It shows error Software error: Can’t locate GD.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.6.2/mach /usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.6.2/BSDPAN /usr/local/lib/perl5/5.6.2/mach /usr/local/lib/perl5/5.6.2 . /usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi) at ./cgi/diskusage.cgi


HOW-TO: Upgrading Kernel with up2date

Today i upgraded kernel of RHEL server. It was done with up2date, it was really easy to do. But compiling kernel from source always give you more compact kernel, but you should know what is needed and what is not,


Making vi the default editor

Many linux system use pico as default editor. I love to use vi for editing files. crontab -e open up in pico if pico is set as default editor. This can be changed by setting environment variable VISUAL=vi Read more


MySQL Query Cache

The query cache stores the text of a SELECT query together with the corresponding result that was sent to the client. If an identical query is received later, the server retrieves the results from the query cache rather than parsing


Install and configure cPanel

1. You must complete a server installation of one of the supported operating systems listed on cpanel.net main page. (Install suplimentary wget and lynx) 2. You must have a server with the following minimum specifications: At least a Pentium 3


Easy way to create PDF Files

PDF is a document format by Adobe. PDF can be viewed on Windows, Linux and Mac. You can create PDF documents with OpenOffice. Open office is a free Office suit, that can replace Microsoft Office. OpenOffice can be download free


Installing php5 with existing php4

This script allow you to install php5 along with php4 on a Cpanel server with Choon’s annonymous spamer patch. To run php 5 scripts, you have to name the file with .php5 extension. http://devel.webonce.com/php5.txt #!/bin/sh # Copyright 2005 (c) Jacob