HostOnNet Blog

Author Archives: flashweb

Installing ImageMagick on FreeBSD 5.4 Server

ImageMagick allows PHP, Perl and other scripts to manipulate images. On FreeBSD server, ImageMagick can be installed easily from ports. Before installing any software from ports, make sure ports tree on your server is uptodate. # cd /usr/ports # make


Fixing Bind RNDC errors in Cpanel Server

RNDC (rndc) is the control program of BIND (name servers). In many new Cpanel/WHM installation you will see BIND not getting started at boot time and not even with service named start You can correct the problem with # cd


FreeBSD Log File Rotation with NewSysLog

FreeBSD uses NewSysLog to rotate log files. NewSysLog is installed and running by default on FreeBSD servers, so what you need to do is add your log files (Eg: Apache log files) to /etc/newsyslog.conf To rotate Apache log, i have


SSL Redirecting to https page

A client want all pages in her web site secured. SSL was already installed on the domain name. So all pages, if access with SSL url was secure https://myyoffi.com But she need all visitors see secure page regardless of what


Installing ImageMagick on Linux Server

ImageMagick is a package for the automated and interative manipulation of images through PHP, Perl and other programming languages. Installing ImageMargick on Linux is easy. There are 3 ways to install ImageMagick 1. Install from Source 2. Install with yum


FTP Limiting 2000 file listing on Cpanel server

On Cpanel server with Pure-FTPd, FTP is showing only 2000 files in a folder. Folder contains about 4000 files. On FTP Client, getting following error 150 Accepted data connection 226-Options: -a -l 226 Output truncated to 2000 matches To correct


Set server time with ntpdate

Server time can be set with ntpdate command on both Linux and FreeBSD. ntpdate command get date and time from the time server (a server running NTP – Network Time Protocol server) and update the date and time. Windows by


Keeping FreeBSD up to date

FreeBSD uses ports to install and upgrade software. Ports collection can be found at /usr/ports/, if its not installed, you can always install it with /stand/sysinstall utility. Upgrading ports # cd /usr/ports/sysutils/portupgrade # make all install # cd /usr/ports/sysutils/portsnap #


DNS Server file

In FreeBSD and Linux servers, DNS server used by the server is set in /etc/resolv.conf freebsd# cat /etc/resolv.conf search localdomain nameserver 192.168.199.2 freebsd# In this case, when you request a web resource from server, server will use 192.168.199.2 as DNS


Configure IP Addresses

FreeBSD uses only 1 configuration file to list your IP addresses and default gateway: /etc/rc.conf There is one line per IP address in this file. Secondary (alias) IP addresses are configured with a netmask of 255.255.255.255. Here’s an example of