Skip to Content

Monthly Archives: April 2013

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 […]

installing nginx in a server

Written on April 1, 2013 at 9:55 PM, by

Follow the steps below to install nginx:   cd /usr/local/src wget tar xf nginxadmin.tar cd publicnginx ./nginxinstaller install Note: You may needed to run pythonfix script if you are installing it in first time. Id you have previously installed old version of the nginx admin, please uninstall and then perform the installation. To […]