Categories
cpanel server tut

restore multiple cpanel backup from folder ssh

log ssh dont forget to change “backupfolder” with your backups folder
[php]
cd /home/backupfolder; for a in *; do /scripts/restorepkg $a; sleep 30; done;
[/php]

Categories
cpanel General

Cpanel Commands ssh

Install cpanel

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

backup one user account
/scripts/pkgacct USERNAME

Force Cpanel backup run for all users
/scripts/cpbackup –force

 

Categories
cpanel server tut

EasyApache Profile clone copy

alot of my friends ask how can the clone their apache profile to more than one  server for easyapache this is simple steps from putty ssh or any ssh client

cd /var/cpanel/easy/apache/profile/custom
wget -c -q http://www.mohamedsharaf.net/appacheprofile.yaml
/scripts/easyapache –profile=/var/cpanel/easy/apache/profile/custom/appacheprofile.yaml –build
/etc/init.d/httpd restart
/etc/init.d/mysql restart

Categories
cpanel server tut

Setting up Wildcard DNS for Subdomains on Cpanel

Ever wanted to setup subdomains on your Cpanel server, such that a keyword is the wildcard part of your domain? Something along the lines of:

  • keyword.yourdomain.com
  • keyword2.yourdomain.com
  • keyword3.yourdomain.com

It’s not as difficult as you might think, however, you will need access via SSH to edit a few server files, or, contact your web host to make a few quick edits on your account.