Skip to Content

Category Archives: cpanel

script to change cpanel password for many users in server

Written on April 2, 2013 at 5:13 AM, by

First get all the users name in a file : users.txt then touch a file chmod 755 copy the following code to that file:   ——————————————————- #!/bin/bash for i in `more users.txt` do randstring=`tr -dc _#$%^\&*\(\)\=A-Za-z0-9\~\+@! < /dev/urandom | head -c 8` echo “$i $randstring” >> newpass.txt /usr/local/cpanel/scripts/realchpass $i $randstring /scripts/mysqlpasswd $i $randstring […]

Bugzilla Installation in cpanel

Written on March 14, 2013 at 5:51 PM, by

Bugzilla can be installed in a cpanel account through the following steps: First of all, its better that we install bugzilla in a sub-domain of the main account. eg: * create the new subdomain using cpanel. * extract the latest bugzilla files to the directory ‘bugzilla’. Latest bugzilla tar file can be obtained from […]

set custom php for a domain when server uses FCGI handler

Written on November 4, 2012 at 9:11 AM, by

Make a backup copy of your cPanel PHP wrapper script with the following command: cp -frp /usr/local/cpanel/cgi-sys/php5 /usr/local/cpanel/cgi-sys/php5-BACKUP   Now edit the cPanel PHP wrapper script with your favorite text editor: vi /usr/local/cpanel/cgi-sys/php5 By default this script should look like: #!/bin/sh # If you customize the contents of this wrapper script, place # a copy […]

reset bandwidth for a domain in WHM/CPANEL

Written on October 25, 2012 at 8:40 PM, by

Follow the below steps to reset bandwidth for a domain.   ssh to your server cd /var/cpanel/bandwidth.cache/ vi and/or vi username replace contents with 0 save and quit    

add comment when denying and ip using csf

Written on October 22, 2012 at 2:24 PM, by

This can be done easily as follows: csf -d <ip> <comment> for example: csf -d too many connections This will automatically add the comment “too many connections” to csf.deny file: ——————————————————- # grep /etc/csf/csf.deny # too many connections – Mon Oct 22 12:10:13 2012 ——————————————————– This will help us to keep track […]

access logs not functioning

Written on October 20, 2012 at 6:43 PM, by

Recently I found an issue where domlogs in the server was no updating. That is, all the the domains domlogs were empty. Due to this reason awstat was not updating for any domains in the server. The fix for this issue was to add the following piece of code to httpd.conf =========================== <IfModule mod_log_config.c> LogFormat […]

Exclude accounts or files from cpbackup

Written on September 23, 2012 at 8:29 PM, by

There are two files in cpanel that will help to exclude files or accounts from cpbackups. To exclude a user in the server from cpanel backup, add the user to the file: /etc/cpbackup-userskip.conf   To exclude a file from backup, add that file to exclude path to the cpanel file: /etc/cpbackup-exclude.conf   * Restart cpanel […]

way to change disk quota for a user using script

Written on September 17, 2012 at 8:23 AM, by

To change the disk quota of a user ‘test’ to 150 M in a capnel server, perform the following:   /scripts/editquota test  150M

cpanel error : Can’t locate Class/ in @INC

Written on August 25, 2012 at 5:46 AM, by

I tried to run easy apache script in the server and could see the following error hitting the normal easyapache script start: error: Can’t locate Class/ in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux- Fix: – I download and install perl package from . – following that I used the script : /scripts/perlinstaller –force […]

cdp-agent not starting issue in server

Written on August 20, 2012 at 2:25 AM, by

Error: # /etc/init.d/cdp-agent status /etc/init.d/cdp-agent status: cdp (pid 10436?) not running When checking the r1soft logs we get the exact error . The error would be like as follows: ============ ,[ERROR],[NO-CONNECTION],Exception from network server: Address already in use ============ The issue can be sorted out by using the following steps. If your Agent hangs up […]