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

installing nginx in a server

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

Follow the steps below to install nginx: http://nginxcp.com/forums/Thread-nginx-admin-stable-version-v4-2-released   cd /usr/local/src wget http://nginxcp.com/latest/nginxadmin.tar 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 […]