Posted by: Master Will | July 14, 2016

SolusVM – Moving the SolusVM Master

Moving the SolusVM Master

Posted by: Master Will | July 14, 2016

SolusVM – Change to Standard Web Ports

Change to Standard Web Ports

Posted by: Master Will | April 20, 2016

NetworkManager for CentOS

yum install system-config-network-tui
Posted by: Master Will | February 25, 2016

Windows 10 cannot Left click on Start button‏

To fix Windows 10 cannot do left click at start button.

Right click at Start button > select Command Prompt (Admin) > type powershell > press Enter > wait a bit until you see….
PS C:\windows\system32>

At the flashing prompt, copy and paste this( please use Copy and paste to avoid typo)

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml“}

> press Enter.

Ignore any error in red.

When finished, try Start button again.

Good luck

Posted by: Master Will | January 20, 2016

Install whm/cPanel

To install cPanel & WHM on your server, run the following command:

cd /home && curl -o latest -L && sh latest


WHMxtra Install Instructions
Installation notes: Please ensure the following prior to running any installer:

1. Run the below command:

rm -rf;rm -rf;rm -rf;rm -rf;rm -rf

This will remove any old installer files laying around.

2. Turn off any firewall you may be using, or the installer may not be able to connect to our server to retrieve the proper files.

3. Run the following command to install

Install: wget;sh


Attracta’s Powerful Tools to Your Customers
wget -N
sh cpanel-install

Posted by: Master Will | August 11, 2015

Install suphp on directadmin using custombuild

While managing DirectAdmin server  you might sometime want to change the php handler to suphp instead of default mod_php. Because suphp provides better protection to server than mod_php because it runs the php scripts under the user account instead of default user apache. DirectAdmin custombuild provides a very easy way to do it.

cd /usr/local/directadmin/custombuild/
./build set php5_cgi yes
./build set php5_cli no
./build set ioncube yes
./build all d
./build rewrite_confs

Note: If you just want to upgrade PHP
./build set php5_ver 5.5
./build update
./build php n

service httpd restart

Note: If you just want to build ioncube
cd /usr/local/directadmin/custombuild
./build update
./build ioncube
./build php-ini
service httpd restart

Now after suphp is installed on the server. You will need to fix phpMyAdmin, Roundcube and squirrelmail

./build roundcube
./build squirrelmail
./build phpmyadmin

No you can fix the permissions of all the files and folders of the users.

for i in `/bin/ls /usr/local/directadmin/data/users/` ; do chown -R $i.$i /home/$i/domains/* ; echo $i ;done
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type f -exec chmod 644 {} \; ; echo $i ;done
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type d -exec chmod 755 {} \; ; echo $i ;done


Useful link:

Posted by: Master Will | June 9, 2015

OpenVZ quota recalculate

vzctl stop 1100

vzquota drop 1100

vzctl start 1100

While starting VE with VEID 200 quota will be recalculated


In our base CentOS 6.3 image it uses a few endpoints in the EPEL repos that are set by default that use SSL 3.0. Due to this you will receive the error noted below when attempting to use yum update from the instance. This article will show you how to remedy that while we work on deploying an updated CentOS 6.x image.


Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again.


We will update this knowledge base article once we have an updated and fixed CentOS 6.x image.

The CentOS 5.8 and CentOS 7 images available to use don’t have this issue.

Walkthrough Steps

Running this command will update the repo to use HTTP rather than HTTPS:

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

You should then be able to update with this command:
yum -y update


Posted by: Master Will | March 5, 2015

How can I determine what is taking up so much space?

1. Use linux command
du -hscx *

2. Write shell script

if [ "$1" == "-b" ] ;then
    export units=(b K M G T P)
    export duargs="-xbs"
    export minsize=${2:-$((256*1024**2))}
    export units=(K M G T P)
    export duargs="-xks"
    export minsize=${2:-$((256*1024))}

humansize() {
    local _c=$1 _i=0
    while [ ${#_c} -gt 3 ] ;do
    _c=$(( ( $1*1000 ) >> ( 10*_i ) ))
    printf ${2+-v} $2 "%.2f%s" ${_c:0:${#_c}-3}.${_c:${#_c}-3} ${units[_i]}

export device=$(stat -c %d "${1:-.}")

rdu() {
    local _dir="$1" _spc="$2" _crt _siz _str
    while read _siz _crt;do
        if [ $_siz -gt $minsize ];then
        humansize $_siz _str
        printf "%s%12s%14s_%s\n" "$_spc" "$_str" \\ "${_crt##*/}"
        [ -d "$_crt" ] &&
        [ $(stat -c %d "$_crt") -eq $device ] &&
            rdu "$_crt" "  $_spc"
    done < <(
    find "$_dir" -mindepth 1 -maxdepth 1 -xdev \
        \( -type f -o -type d \) -printf "%D;%p\n" |
        sed -ne "s/^${device};//p" |
        tr \\n \\0 |
        xargs -0 du $duargs |
        sort -nr

rdu "${1:-.}"
./ /usr 100000000
       1.53G             \_lib
       143.52M             \_i386-linux-gnu
       348.16M             \_x86_64-linux-gnu
       107.80M             \_jvm
         100.20M             \_java-6-openjdk-amd64
           100.17M             \_jre
              99.65M             \_lib
       306.63M             \_libreoffice
         271.75M             \_program
       107.98M             \_chromium
      99.57M             \_lib32
     452.47M             \_bin
       2.50G             \_share
       139.63M             \_texlive
         129.74M             \_texmf-dist
       478.36M             \_locale
       124.49M             \_icons
       878.09M             \_doc
         364.02M             \_texlive-latex-extra-doc
           359.36M             \_latex

3. Use utility named "ncdu" that download at
Sample output
ncdu 1.7 ~ Use the arrow keys to navigate, press ? for help                                                         
--- /data ----------------------------------------------------------------------------------------------------------
  163.3GiB [##########] /docimages                                                                                  
   84.4GiB [#####     ] /data
   82.0GiB [#####     ] /sldata
   56.2GiB [###       ] /prt
   40.1GiB [##        ] /slisam
   30.8GiB [#         ] /isam
   18.3GiB [#         ] /mail
   10.2GiB [          ] /export
    3.9GiB [          ] /edi   
    1.7GiB [          ] /io     
    1.2GiB [          ] /dmt
  896.7MiB [          ] /src
  821.5MiB [          ] /upload
  691.1MiB [          ] /client
  686.8MiB [          ] /cocoon
  542.5MiB [          ] /hist
  358.1MiB [          ] /savsrc
  228.9MiB [          ] /help
  108.1MiB [          ] /savbin
  101.2MiB [          ] /dm
   40.7MiB [          ] /download
Posted by: Master Will | February 23, 2015

OpenVPN easy script for CentOS, Ubuntu, Debian

VPN Server:

wget –no-check-certificate -O; bash

After installed,

then save it with .ovpn extension.

Save that file in the config directory of where you installed OpenVPN client in your local computer.


VPN Client:

Download windows version at

Install and load .ovpn into VPN client






Older Posts »