Welcome to W3Space Blog

Step-by-Step Tutorials

4 Drive raid setup – 2 SSD raid 1 for system setup and 2 HDD another raid 1 to /storage

First setup the ssd with raid 1 and comment the 2 hdd. Then Add a software RAID array In our example scenario, the drives /dev/sda and /dev/sdb are already combined in multiple RAID1 arrays, which hold the operating system: But we have two more drives (/dev/sdc and /dev/sdd), which we would like to setup as a data storage with RAID1 array… read more »

 51 total views,  6 views today

[CentOS] curl#6 or #14 – “Could not resolve host: mirrorlist.centos.org; #72

For that type error: Downloading packages:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.screen-4.1.0-0.26.20120314git3 FAILEDhttp://mirrors.gigenet.com/centos/7.9.2009/os/x86_64/Packages/screen-4.1.0-0.26.20120314git3c2946.el7.x86_64.rpm: [Errno 14] curl#6 – “Could not resolve host: mirrors.gigenet.com; Unknown error”Trying other mirror….. For fix that:  210 total views,  3 views today

 210 total views,  3 views today

Migrate/Transfer Multiple cPanel Accounts without WHM Transfer tools

First of all remove any backup file present under /home directory using the command rm -rf /home/cpmove-* Create the list of accounts you wish to migrate using the below commands. cat /etc/trueuserdomains | awk ‘{print $2}’ > /home/accountlist Now you have the list of account in the file  /home/accountlist Suppose that you have 100 accounts and wish to move… read more »

 1,212 total views,  3 views today

How to Restrict SFTP Users to Home Directories Using chroot Jail

Create or Modify Users and Groups Let us restrict the existing user, for example asifnew, to his/her home directory named /home/asifnew. For this, you need to create a new sftpgroup group using groupadd command as shown: # groupadd sftpgroup You can also create a new user using useradd command, for example asifnew and assign the user to sftpusers group. # adduser asifnew -g sftpgroup -s… read more »

 759 total views,  3 views today

How to Install and Configure FTP Server in Ubuntu

In this tutorial, we will show how to install, configure and secure a FTP server (VSFTPD in full “Very Secure FTP Daemon“) in Ubuntu to have a powerful security against FTP vulnerabilities. Step 1: Installing VsFTP Server in Ubuntu 1. First, we need to update the system package sources list and then install VSFTPD binary package as follows: $ sudo apt-get update $… read more »

 784 total views,  3 views today

Export/import a MySQL database via SSH

When dealing with large databases over 50Mb it is recommended to manage them via SSH. SiteGround customers can find more information on how to connect to and use SSH in our SSH Tutorial. In this article, we will cover exporting and importing a database via SSH. Make sure that you replace the following variables in the… read more »

 757 total views,  3 views today

How-to: cPanel to Directadmin migration

To increase it in DA to 16, for example, you can simply run:Code: /usr/local/directadmin/directadmin set max_username_length 16 restart * To make sure your MySQL username/database name is fine, I’d suggest upgrading your MySQL/MariaDB on the server (https://www.directadmin.com/features.php?id=2294), MySQL 5.7+ or MariaDB 10.x is recommended.* I’d suggest trying it with 1 account first, most preferably – the one… read more »

 735 total views,  3 views today

Installing an SSL certificate for your hostname using LetsEncrypt in directadmin

cd /usr/local/directadmin/scripts./letsencrypt.sh request_single your.hostname.com 4096which will also install the new cert/key/ca files in all respective global places for apache, dovecot, exim, ftp, and DirectAdmin.NOTE The hostname value, eg: your.hostname.com must match the “servername” value set in the directadmin.conf, or it will not be in hostname mode, but User domain mode instead. You must then turn on SSL in DA and… read more »

 777 total views,  3 views today

Automatically setup LetsEncrypt SSL for *all* domains that do not currently have a certificate in directadmin

The new LetsEncrypt feature is a great way to easily secure your website connections at no cost.  If you already have many website that you want to secure all at once, you can use the autoletsencrypt.sh script to do this. Make sure you’ve already enabled LetsEncrypt on the system: Then you can install certificate for all domains:cd… read more »

 712 total views,  3 views today

How to enable LetsEncrypt in directadmin

LetsEncrypt is a free SSL tool that lets you install a very basic free SSL Certificate with 1 click.  It supports multiple domains and sub-domains, and will auto-renew automatically before it expires after it’s ~90 day lifespan. To enable this feature in DirectAdmin, ensure you have DirectAdmin 1.50.1 or newer. If you’re running CentOS 6… read more »

 885 total views,  3 views today