First of all get all the users name in a file : users.txt Then touch a file script.sh chmod 755 script.sh 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 […]
Increasing the number of filelistings in pureftpd
1) Login to the server as root. 2) Open the configuration file for pure-ftpd. vi /etc/pure-ftpd.conf 3) Locate the line which says : LimitRecursion 2000 8 This is ‘ls’ recursion limits. The first argument is the maximum number of files to be displayed and the second one is the max subdirectories depth. 4) Edit the […]
Changing Time Zone for a particular account on cpanel server
To change the Time zone for any particular account on the cPanel server you can do the following steps: 1) Login to the server as root. 2) Go to the home directory of the account. […]
Can’t create/write to file ‘/tmp/#sql_50e0_0.MYD’ (Errcode: 17)
While adding a SQL statement to Database sometimes we get an error as follows: In order to remove the error. Navigate to the root of the domain. […]
phpMyAdmin – Error : Cannot start session without errors
Sometimes phpMyAdmin is inaccessible and gives the error message”Cannot start session without errors”. […]
Add or Remove WWW Prefix in Domain URL
Redirecting a domain to WWW is a very simple task. In this tutorial you will show you how to add or remove www on Apache (using mod_rewrite) and Nginx web servers. For example http://mydomain.com should be redirect to http://www.mydomain.com. Add WWW PREFIX IN DOMAIN URL Go to your website’s home directoty: […]
Error after changing WHM theme
After changing the WHM theme sometimes you can deal with following error while trying to revert the changed theme. This error is generally occurs when the theme is not set properly. The file that stores the WHM theme is located as follows: For root the path is: /root/.whmtheme Login to the server as the root […]
Webalizer stats without cpanel login
Sometimes we would like to view the site stats without login to cPanel. We can follow the steps in order to check the site stats (webalizer) without login to cPanel: […]
Disable suhosin
If you want to disable Suhosin for a domain can be done by 2 methods. 1) Using php.ini 2) Using .htaccess. […]
Install Installatron on a cPanel/WHM server
To install Installatron on a cPanel server make sure that you have cPanel/WHM 11.x (latest), 10.x, 9.x versions available. Now login to the server as root. Get the Installatron Script. wget http://data1.liquenox.com/installatron_setup.sh Assign appropriate ownership to the installatron_setup.sh chmod 755 installatron_setup.sh Run the script. ./installatron_setup.sh -f Installation is now ready to use in cPanel and WHM. […]