cPanel

Install fantastico on cPanel

SSH to your server(s) and enter following commands:
cd /usr/local/cpanel/whostmgr/docroot/cgi

wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz

tar -xzpf fantastico_whm_admin.tgz

rm -rf fantastico_whm_admin.tgz

Now go to WHM, login as root and follow the link WHM -> Add-Ons -> Fantastico De Luxe WHM Admin.
Upon loading, Fantastico De Luxe WHM Admin will auto-update your existing installation.
All admin files (masterfiles, tarballs, settings etc) will be moved to /var/netenberg.

Currently there is a issue with version of  wget centos,

Use the below steps,

wget http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar xfz wget-latest.tar.gz
cd wget-*
./configure
make
make test
make install
cd ../
rm -Rf wget-*

Comments Off more...

How to install cPanel on Linux os

SSH to server as root

First run yum -y update

cd /home
wget http://layer1.cpanel.net/latest
sh latest

Wait for 45 minute and cPanel will get installed.

You can access WHM using https://domain.tld:2087

Comments Off more...

error : Template Error: The template file must be given

You can sometimes get this error in cPanel default page.

In such cases the below solution needs to be applied,

WHM Main >> Account Functions >> Web Template Editor >  Reset

Once done you will again see the cpanel default page.

Comments Off more...

Disable catch all in whole cPanel server

## Create a backup directory

mkdir -p /etc/valiasesbackup

## Copy the original valiases to backup directory

cp -R /etc/valiases /etc/valiasesbackup

##replace ‘:fail, No Such User Here ,blackhole in  /etc/valiases/*

sed -i ‘s/^\*: [^ ]*$/*: :blackhole:/g’ /etc/valiases/*

Make sure you assign correct permissions:

chmod 777 /etc/valiases/*
chown nobody:nobody /etc/valiases/*

You are done now enjoy :)

Comments Off more...

bad interpreter: No such file or directory in Linux

Trying to run a shell script and find error “bad interpreter: No such file or directory”

Below is the fix dos2unix filename.sh

Where filename is the name of your shell script

Now all should be alright.

Comments Off more...

How to restore ssh to default port via WHM

You need to run below code in browser address

Example,

https://hillockhosting.com:2087/scripts2/doautofixer?autofix=safesshrestart

This will prompt you for root username and passsword on entering the default port is set to 22 now.

SSH on port 22 and enjoy.

Comments Off more...

How to install Imagemagick on Linux

To install Imagemagick use the below steps,

yum install ImageMagick.i386
yum install ImageMagick-devel.i386
pecl install imagick

Once done add the below code in php.ini

extension=imagick.so

Now restart httpd  and see the phpinfo page .

Imagemagick should be present in it.

Comments Off more...

Install Trac on Linux

First get the zipped file trac-0.10.4.tar.gz which is avaliable at

$ tar xzf trac-0.10.4.tar.gz

$ cd trac-0.10.4

$ python setup.py build

$ python setup.py install
$ /sbin/ldconfig

This will install Trac on server.

Now the main part is to create a project

trac-admin /path/to/myproject initenv

Now to make trac compatible with apache,
add the below code in httpd.conf
<Location /myproject>
 SetHandler mod_python
 PythonInterpreter    main_interpreter

 PythonHandler    trac.web.modpython_frontend

 PythonOption    TracEnv  /path/to/myproject
 PythonOption    TracUriRoot /myproject

</Location>

Restart http now

You can now access the trac project using URL 

http://domain.tld/project_path
Comments Off more...

How to install ffmpeg on Linux machine

SSH to server as root

By default the centos repository does not have the required packages.

Get the DAG repository using below command,

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Once done on command prompt type  # yum -y install ffmpeg ffmpeg-devel

This will install ffmpeg on your server.

If you need ffmpeg for php you need to install the below packages ffmpeg-php

Download the below package from sourceforge,

wget  http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download

Uncompress it

tar -xvjf  ffmpeg-php-0.6.0.tbz2

once done go to the unzipped directory

cd  ffmpeg-php

./configure

make

make install

It will install module in a extension directory

Make sure it inserts into extension directory mentioned in php.ini

If not you can also copy it to extension directory mentioned in php.ini

Then coming to last step

Add the statement extension=ffmpeg.so in php.ini and restart httpd.

Now ffmpeg should show up in phpinfo page.

Comments Off more...

Tracert from Windows/Linux/Mac

For windows machine

Go to start > run > type cmd > tracert domain.tld where domain.tld is your domain name.

For Linux/Mac machine

Go to Application > terminal > traceroute  domain.tld where domain.tld is your domain name.

Comments Off more...

Hillock's Wiki

Unlimited Hosting Solutions
  • Categories

  • Twitter Updates

    • Calendar

      May 2012
      M T W T F S S
      « Apr    
       123456
      78910111213
      14151617181920
      21222324252627
      28293031  
    • SMS Text Message

      Phone number

      Carrier

      *Standard text messaging rates may apply from your carrier*
    • © 2011 Hillock Hosting. All rights reserved
      Jarrah theme by Templates Next | Powered by WordPress