How to set correct ownership to all account on the cPanel server. You can use the following commands to set the correct ownership for all accounts which is hosted on the cPanel server. =============================== for i in `cat /etc/trueuserdomains |...
Category: Shell Programming and Scripting
test cgi script
Create one test.cgi file and add the folloing test code for checking the .cgi file working on the server. ======================= #!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; =======================
some IMP script
1) Script for finding username from /etc/trueuserowners file and save it user.txt file cat /etc/trueuserowners | awk '{print $2}' > user.txt or cat /etc/trueuserdomains | awk '{print $1}' > user.txt 2) Script for remove .htaccess or any file from current(.)...
Script for create package on cpanel server
If you want to migrate more accounts from one server to another server then you need to create packages for each accounts . You can easilly create packages by using this script. 1) Create one Migarting-Accounts.txt file and add the...