openvz scripts

In this article, we’ve put some small scripts that useful for openvz

vzstartall.sh
#!/bin/bash
## vzstartall - starts all openvz containers that are currently stopped
for arg in `vzlist -HS -o ctid`
do
echo working on container $arg
sudo vzctl start $arg
done

vzstopall.sh
#!/bin/bash
## vzstopall - stops all running openvz containers
echo stopping all running openvz containers
for arg in `vzlist -H -o ctid`
do
echo working on container $arg
sudo vzctl stop $arg
done

Read the rest of this entry »

Move addon domain as a standalone cpanel account

If you need to change an addon domain as a standalone cpanel account, follow these steps:
Backup
——
1. Take a full backup of the user from Cpanel
2. Extract the backup onto your PC.

Create as stand alone account
—————————–
3. Remove that addon domain
4. Create that domain from WHM –> Create new account

Restore web files
—————–
5. Copy all web files of that addon domain from the backup to the new document root.
6. Change the ownership all files to newuser.newuser

Restore DB’s
———–
7. Make sure the name of DB for each domain.
8. In backup directory there is a mysql directory. All DB’s are under that mysql directory.
9. Login to the new cpanel account of that new account.
10. Create a DB, DB user from Cpanel –> Mysql
11. Give all privileges to that mysql user to the corresponding DB from there.
12. Make sure to edit all mysql configuration files in the document root of that domain.
13. Restore the old DB to new DB.

Restore mails
————-
14. In the backup, we can see a directory named mail. Copy the directory of the domain from that directory to new accounts mail directory /home/newuser/mail/
15. Change the ownership of that directory under /home/newuser/mail/ to newuser.newuser

Restore mail accounts with same password
—————————————-
16. In the backup we can see a directory etc. Copy the directory of the domain from that directory to new accounts /home/newuser/etc/
17. Change the ownership of that directory under /home/newuser/etc/ to newuser.mail

That all folks

Libur Idul Adha 1434H

Sehubungan dengan Hari Raya Idul Adha 1434H maka Whplus libur mulai tanggal 14-15 Oktober 2013. Layanan sales dan billing akan mengalami delay selama masa libur Idul Adha tsb. Untuk support tetap aktif melalui tiket online dan email. Layanan akan normal kembali mulai 16 Oktober 2013.

Kami juga menghimbau kepada Anda yang Muslim agar melaksanakan Puasa Arafah pada 9 Dzulhijjah 1434H atau 14 Oktober 2013.

Demikian informasi ini kami sampaikan, mohon dimaklumi. Terima kasih atas perhatian dan kerjasamanya.

Posted in News. Comments Off on Libur Idul Adha 1434H