DirectAdmin How To Change Domain Name

DirectAdmin How To Change Domain Name

Here’s how you can change your domain name in DirectAdmin. As of 12 September 2019, DirectAdmin lacks a way for resellers to change the domain names of users from the reseller panel. Hence, resellers must login as the user of whom you wish to have the domain name changed.

So whether you are a reseller, or just a normal user, the steps to changing the domain name are the same. Look below to see how you can do so.

  1. Ensure that you are logged in as user (look at the top right corner for User)

    DirectAdmin How To Change Domain Name 1
    DirectAdmin How To Change Domain Name 1
  2. Under Account Manager, click Domain Setup (look at bottom left corner of image below)

    DirectAdmin How To Change Domain Name 1
    DirectAdmin How To Change Domain Name 1
  3. Now that you are brought to the Domain Management page, click the Rename Domain button at the right side of the page
    DirectAdmin How To Change Domain Name 2
    DirectAdmin How To Change Domain Name 2

    DirectAdmin How To Change Domain Name 3
    DirectAdmin How To Change Domain Name 3
  4. You are done ! But don’t forget, if you have an existing website published already, you should definitely redirect your old domain to your new one. See how you can do that, here
    DirectAdmin How To Change Domain Name 4
    DirectAdmin How To Change Domain Name 4

     

Enjoyed the content ? Share it with your friends !

SQLite Fix Error – Database Disk Image Is Malformed

SQLite3 Fix Error – Database Disk Image Is Malformed

We will be using SQLite Browser, so download it here if you don’t have it.  It’s pretty easy to fix it, just follow the steps below

  1. Load up your corrupted database into SQLite Browser,
  2. Run the integrity check  under Tools > Integrity Check .The images below shows the steps and the result (error) I got
    Run Integrity Check 0
    Run Integrity Check 0
    Run Integrity Check 1
    Run Integrity Check 1

    Run Integrity Check 2 Results
    Run Integrity Check 2 Results
  3. If it returns ‘OK’, it means your database is not corrupted. If it returns anything else, you will need to fix your database. Follow through with this guide.
  4. Export your database to any format

    SQLite Browser Export
    SQLite Browser Export
  5. Import your database back to .sqlite3 (or any format you which)
    SQLite Browser Import 0
    SQLite Browser Import 0

    SQLite Browser Import 1
    SQLite Browser Import 1
  6. If you run the integrity check once more, it should return ‘OK’

If you face any other issues, let me know in the comments below and I’ll try my best to help you out

Enjoyed the content ? Share it with your friends !

HostHatch Storage 250GB Review

HostHatch Storage 250GB Review

Here’s a bench.sh from a $15/y box from HostHatch. Bench results are really great even though its only $15/y. This is a promotional plan but it does get offered from time to time, so not to worry, and just keep a lookout on the LowEndTalk forums.

----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
Number of cores : 1
CPU frequency : 2999.998 MHz
Total size of Disk : 246.0 GB (1.1 GB Used)
Total amount of Mem : 488 MB (73 MB Used)
Total amount of Swap : 511 MB (0 MB Used)
System uptime : 0 days, 0 hour 5 min
Load average : 0.00, 0.01, 0.01
OS : CentOS 7.4.1708
Arch : x86_64 (64 Bit)
Kernel : 3.10.0-693.11.6.el7.x86_64
----------------------------------------------------------------------
I/O speed(1st run) : 383 MB/s
I/O speed(2nd run) : 416 MB/s
I/O speed(3rd run) : 419 MB/s
Average I/O speed : 406.0 MB/s
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 114MB/s
Linode, Tokyo2, JP 139.162.65.37 9.27MB/s
Linode, Singapore, SG 139.162.23.4 5.76MB/s
Linode, London, UK 176.58.107.39 16.3MB/s
Linode, Frankfurt, DE 139.162.130.8 11.9MB/s
Linode, Fremont, CA 50.116.14.9 21.4MB/s
Softlayer, Dallas, TX 173.192.68.18 57.5MB/s
Softlayer, Seattle, WA 67.228.112.250 24.7MB/s
Softlayer, Frankfurt, DE 159.122.69.4 6.73MB/s
Softlayer, Singapore, SG 119.81.28.170 6.07MB/s
Softlayer, HongKong, CN 119.81.130.170 6.81MB/s
----------------------------------------------------------------------
Enjoyed the content ? Share it with your friends !

PHP Quick Function For Asynchronous Multi Curl

PHP Quick Function For Asynchronous Multi Curl

If you are here, it probably means that you have a problem – you have a bunch of URLs that you need to cURL, but doing it linearly (one by one) is too slow. This is where curl_multi_init comes in. It is the asynchronous version of curl and it will help you to save lots of time (by that i mean like 80-90%)

So anyway, below is a quick function for you to use. Feel free to modify it according to your needs.

function get_content_of_urls($urls)
{
    // array of curl handles
    $multi_curl = array();
    // data to be returned
    $results = array();
    // init multi handle
    $mh = curl_multi_init();
    $i = 0;
    foreach ($urls as $url) 
    {	
        $multi_curl[$i] = curl_init();
        curl_setopt($multi_curl[$i], CURLOPT_URL,$url);	
        curl_setopt($multi_curl[$i], CURLOPT_HEADER, 0); 
        curl_setopt($multi_curl[$i], CURLOPT_RETURNTRANSFER,1);
        curl_multi_add_handle($mh, $multi_curl[$i]);
        $i++;
    }
    $index=null;
    do {
        curl_multi_exec($mh,$index);
    } while($index > 0);
    // get content and remove handles
    foreach($multi_curl as $k => $ch) {
        $results[$k] = curl_multi_getcontent($ch);
        curl_multi_remove_handle($mh, $ch);
    }
    return $results;
}

If you require any assistance, feel free to let me know in the comments below.

Enjoyed the content ? Share it with your friends !

HTML CSS Code To Put Your Element In Any Of The 9 Quadrants

HTML CSS Code To Put Your Element In Any Of The 9 Quadrants

Using the css below, you can put any element <div>, <img>, and so on in any of the 9 quadrants

  • top left, top middle, top right
  • middle left, middle, middle right
  • bottom left, bottom middle, bottom right
<style>
.topleft {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}
.topmiddle {
   position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    margin:0 auto;
}
.topright {
   position:absolute;
    top:0;
    right:0;
    bottom:0;
    margin:0 auto;
}


.middle {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    margin: auto;
}
.middleleft {
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    margin: auto;
}
.middleright {
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    margin: auto;
}

.bottomleft {
    position:absolute;
    left:0;
    bottom:0;
    margin:0 auto;
}
.bottommiddle {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    margin:0 auto;
}
.bottomright {
    position:absolute;
    right:0;
    bottom:0;
    margin:0 auto;
}
</style>

Example :

<div class="middleright" style="max-height:450px;max-width:300px;">
    <img src="https://image.shutterstock.com/image-photo/beautiful-water-drop-on-dandelion-260nw-789676552.jpg">
</div>

 

Enjoyed the content ? Share it with your friends !