Published on : October 7, 2009 by George K.
In web server management we often need PHP recompilation for Litespeed web server. LSAPI is LiteSpeed’s open-source API between external applications and LiteSpeed Web Server.This how-to is for compiling and installing PHP + LSAPI on Linux, OS X, FreeBSD, Solaris, and so on. LiteSpeed comes with PHP 4.4.x compiled with LSAPI. To change the LightSpeed […]
Published on : October 3, 2009 by George K.
Recompile Kernal Compiling custom kernel has its own advantages and disadvantages. It helps to optimize the kernel to your environment (hardware and usage patterns). I shall try to guide you through the steps on recompile kernel Step 1: Download the kernel source cd /usr/local/src wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-x.y.z.tar.bz2 Note: Replace x.y.z with actual version number. Step 2: Extract […]
Published on : September 24, 2009 by George K.
To password protect a directory htaccess password protect rules can be added in the directory AuthUserFile /path/to/.htpasswd AuthName “This is Hasten secret area” AuthType Basic require valid-user To create .htpasswd file use the following command htpasswd -c .htpasswd <user> You will be prompted for password . Once it is done, the file will be created. […]
Published on : September 17, 2009 by George K.
To access Webalizer for addon domain without loging in to the Cpanel can be done by following the steps 1. Login to the server using SSH 2. Then change directory to the Document Root of the addon domain cd /home/username/public_html/AddondomainFolder 3. In the desired folder create a symbolic link ln -s /home/username/tmp/webalizer/addondomain.maindomain.com webstats 4. Change […]
Published on : August 16, 2009 by Arnold Pablo
In server disaster management our clients often need to mount LVM to new HD to restore data. Let us see the scenario bit more, Situation & Requirement Server crashed and had to be reinstalled. OS along with cPanel was re-installed on a fresh hard disk. Needed to restore the cPanel backup from old LVM hard […]