Pages

Monday, March 25, 2013

Increase Size of /tmp (/usr/tmpDSK) Partition in Linux

Service httpd stop

service mysql stop
pstree -p | grep tailwatchd
umount /var/tmp
umount -l /tmp
dd if=/dev/zero of=/usr/tmpDSK bs=1024k count=2048
du -sch /usr/tmpDSK
mkfs -t ext3 /usr/tmpDSK
file /usr/tmpDSK
mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp
install -d –mode=1777 /tmp
mount -o bind,rw,noexec,nosuid /tmp /var/tmp
service httpd start
service mysql start

 

532 rm -f /usr/tmpDSK
533 dd if=/dev/zero of=/home/tmpDSK bs=1024 count=8192000
535 mkfs.ext3 /home/tmpDSK
536 mount -o loop,rw,noexec,nosuid /home/tmpDSK /tmp
537 mount -o bind,rw,noexec,nosuid /tmp /var/tmp
538 chmod 1777 /tmp
539 cp -Rp /tmp_backup/* /tmp/
540 rm -rf /tmp_backup

 

Moving Accounts in cPanel: A Simple Guide

Sometimes, you might need to move a cPanel account from one part of your server's storage to another. This is often done to balance disk space usage or improve performance. cPanel provides a straightforward tool called "Rearrange an Account" to help you do this.


HOW TO MOVE AN ACCOUNT

Moving an account is a simple process within your cPanel/WHM interface.

  1. Log in to WHM: Access your WebHost Manager (WHM) panel.

  2. Navigate to Account Functions: In the WHM menu, find and click on "Account Functions."

  3. Select "Rearrange an Account": Within "Account Functions," choose the "Rearrange an Account" option.


STEPS FOR REARRANGING AN ACCOUNT

Once you are on the "Rearrange an Account" page, follow these steps:

  1. Select the Account: You'll see a list of all your cPanel accounts. Find the one you want to move. You can also use the "Account Search" feature to quickly locate an account by its domain name or username.

  2. Initiate Rearrangement: After selecting the account, click the "Rearrange" button.

  3. Choose the New Drive: A menu will appear, showing the available hard drives or partitions on your server. Select the drive where you want to move the account.

    Important Note: For this feature to work, the destination hard drive must be set up correctly in your cPanel/WHM configuration. Specifically, it needs to match the /home setting in the "Basic cPanel & WHM Setup" configuration. For example, if your primary home directory is /home, then other valid locations like /home2 or /newhome can also be used if they are configured similarly. If the hard drive you want to move to doesn't match this configuration, you won't be able to move the account to it, and the feature might even be disabled.

  4. Confirm Move: After selecting the new drive, click the "Move Account" button to start the transfer.


WHAT HAPPENS NEXT?

cPanel will then handle the process of moving all the account's files, databases, and configurations to the new location. The time it takes will depend on the size of the account and your server's speed.


WHY MOVE AN ACCOUNT?

  • Disk Space Management: Distribute accounts more evenly across multiple hard drives to prevent one drive from filling up.

  • Performance Improvement: Move busy accounts to faster drives (e.g., SSDs) if available.

  • Organization: Group accounts logically based on their usage or type.

Saturday, March 23, 2013

How to Install Softaculous on VPS or Dedicated Server with cPanel/WHM?

Step one: cd /usr/local/cpanel/whostmgr/docroot/cgi
Step two: wget -N http://www.softaculous.com/ins/addon_softaculous.php

Step three: chmod 755 addon_softaculous.php
Now go to : WHM > Plugins > Softaculous - Instant Installs and there you go